unsigned short Tm[1 << 8][1 << 8] = {{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},{0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255},{0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,118,120,122,124,126,128,130,132,134,136,138,140,142,144,146,148,150,152,154,156,158,160,162,164,166,168,170,172,174,176,178,180,182,184,186,188,190,192,194,196,198,200,202,204,206,208,210,212,214,216,218,220,222,224,226,228,230,232,234,236,238,240,242,244,246,248,250,252,254,256,258,260,262,264,266,268,270,272,274,276,278,280,282,284,286,288,290,292,294,296,298,300,302,304,306,308,310,312,314,316,318,320,322,324,326,328,330,332,334,336,338,340,342,344,346,348,350,352,354,356,358,360,362,364,366,368,370,372,374,376,378,380,382,384,386,388,390,392,394,396,398,400,402,404,406,408,410,412,414,416,418,420,422,424,426,428,430,432,434,436,438,440,442,444,446,448,450,452,454,456,458,460,462,464,466,468,470,472,474,476,478,480,482,484,486,488,490,492,494,496,498,500,502,504,506,508,510},{0,3,6,5,12,15,10,9,24,27,30,29,20,23,18,17,48,51,54,53,60,63,58,57,40,43,46,45,36,39,34,33,96,99,102,101,108,111,106,105,120,123,126,125,116,119,114,113,80,83,86,85,92,95,90,89,72,75,78,77,68,71,66,65,192,195,198,197,204,207,202,201,216,219,222,221,212,215,210,209,240,243,246,245,252,255,250,249,232,235,238,237,228,231,226,225,160,163,166,165,172,175,170,169,184,187,190,189,180,183,178,177,144,147,150,149,156,159,154,153,136,139,142,141,132,135,130,129,384,387,390,389,396,399,394,393,408,411,414,413,404,407,402,401,432,435,438,437,444,447,442,441,424,427,430,429,420,423,418,417,480,483,486,485,492,495,490,489,504,507,510,509,500,503,498,497,464,467,470,469,476,479,474,473,456,459,462,461,452,455,450,449,320,323,326,325,332,335,330,329,344,347,350,349,340,343,338,337,368,371,374,373,380,383,378,377,360,363,366,365,356,359,354,353,288,291,294,293,300,303,298,297,312,315,318,317,308,311,306,305,272,275,278,277,284,287,282,281,264,267,270,269,260,263,258,257},{0,4,8,12,16,20,24,28,32,36,40,44,48,52,56,60,64,68,72,76,80,84,88,92,96,100,104,108,112,116,120,124,128,132,136,140,144,148,152,156,160,164,168,172,176,180,184,188,192,196,200,204,208,212,216,220,224,228,232,236,240,244,248,252,256,260,264,268,272,276,280,284,288,292,296,300,304,308,312,316,320,324,328,332,336,340,344,348,352,356,360,364,368,372,376,380,384,388,392,396,400,404,408,412,416,420,424,428,432,436,440,444,448,452,456,460,464,468,472,476,480,484,488,492,496,500,504,508,512,516,520,524,528,532,536,540,544,548,552,556,560,564,568,572,576,580,584,588,592,596,600,604,608,612,616,620,624,628,632,636,640,644,648,652,656,660,664,668,672,676,680,684,688,692,696,700,704,708,712,716,720,724,728,732,736,740,744,748,752,756,760,764,768,772,776,780,784,788,792,796,800,804,808,812,816,820,824,828,832,836,840,844,848,852,856,860,864,868,872,876,880,884,888,892,896,900,904,908,912,916,920,924,928,932,936,940,944,948,952,956,960,964,968,972,976,980,984,988,992,996,1000,1004,1008,1012,1016,1020},{0,5,10,15,20,17,30,27,40,45,34,39,60,57,54,51,80,85,90,95,68,65,78,75,120,125,114,119,108,105,102,99,160,165,170,175,180,177,190,187,136,141,130,135,156,153,150,147,240,245,250,255,228,225,238,235,216,221,210,215,204,201,198,195,320,325,330,335,340,337,350,347,360,365,354,359,380,377,374,371,272,277,282,287,260,257,270,267,312,317,306,311,300,297,294,291,480,485,490,495,500,497,510,507,456,461,450,455,476,473,470,467,432,437,442,447,420,417,430,427,408,413,402,407,396,393,390,387,640,645,650,655,660,657,670,667,680,685,674,679,700,697,694,691,720,725,730,735,708,705,718,715,760,765,754,759,748,745,742,739,544,549,554,559,564,561,574,571,520,525,514,519,540,537,534,531,624,629,634,639,612,609,622,619,600,605,594,599,588,585,582,579,960,965,970,975,980,977,990,987,1000,1005,994,999,1020,1017,1014,1011,912,917,922,927,900,897,910,907,952,957,946,951,940,937,934,931,864,869,874,879,884,881,894,891,840,845,834,839,860,857,854,851,816,821,826,831,804,801,814,811,792,797,786,791,780,777,774,771},{0,6,12,10,24,30,20,18,48,54,60,58,40,46,36,34,96,102,108,106,120,126,116,114,80,86,92,90,72,78,68,66,192,198,204,202,216,222,212,210,240,246,252,250,232,238,228,226,160,166,172,170,184,190,180,178,144,150,156,154,136,142,132,130,384,390,396,394,408,414,404,402,432,438,444,442,424,430,420,418,480,486,492,490,504,510,500,498,464,470,476,474,456,462,452,450,320,326,332,330,344,350,340,338,368,374,380,378,360,366,356,354,288,294,300,298,312,318,308,306,272,278,284,282,264,270,260,258,768,774,780,778,792,798,788,786,816,822,828,826,808,814,804,802,864,870,876,874,888,894,884,882,848,854,860,858,840,846,836,834,960,966,972,970,984,990,980,978,1008,1014,1020,1018,1000,1006,996,994,928,934,940,938,952,958,948,946,912,918,924,922,904,910,900,898,640,646,652,650,664,670,660,658,688,694,700,698,680,686,676,674,736,742,748,746,760,766,756,754,720,726,732,730,712,718,708,706,576,582,588,586,600,606,596,594,624,630,636,634,616,622,612,610,544,550,556,554,568,574,564,562,528,534,540,538,520,526,516,514},{0,7,14,9,28,27,18,21,56,63,54,49,36,35,42,45,112,119,126,121,108,107,98,101,72,79,70,65,84,83,90,93,224,231,238,233,252,251,242,245,216,223,214,209,196,195,202,205,144,151,158,153,140,139,130,133,168,175,166,161,180,179,186,189,448,455,462,457,476,475,466,469,504,511,502,497,484,483,490,493,432,439,446,441,428,427,418,421,392,399,390,385,404,403,410,413,288,295,302,297,316,315,306,309,280,287,278,273,260,259,266,269,336,343,350,345,332,331,322,325,360,367,358,353,372,371,378,381,896,903,910,905,924,923,914,917,952,959,950,945,932,931,938,941,1008,1015,1022,1017,1004,1003,994,997,968,975,966,961,980,979,986,989,864,871,878,873,892,891,882,885,856,863,854,849,836,835,842,845,784,791,798,793,780,779,770,773,808,815,806,801,820,819,826,829,576,583,590,585,604,603,594,597,632,639,630,625,612,611,618,621,560,567,574,569,556,555,546,549,520,527,518,513,532,531,538,541,672,679,686,681,700,699,690,693,664,671,662,657,644,643,650,653,720,727,734,729,716,715,706,709,744,751,742,737,756,755,762,765},{0,8,16,24,32,40,48,56,64,72,80,88,96,104,112,120,128,136,144,152,160,168,176,184,192,200,208,216,224,232,240,248,256,264,272,280,288,296,304,312,320,328,336,344,352,360,368,376,384,392,400,408,416,424,432,440,448,456,464,472,480,488,496,504,512,520,528,536,544,552,560,568,576,584,592,600,608,616,624,632,640,648,656,664,672,680,688,696,704,712,720,728,736,744,752,760,768,776,784,792,800,808,816,824,832,840,848,856,864,872,880,888,896,904,912,920,928,936,944,952,960,968,976,984,992,1000,1008,1016,1024,1032,1040,1048,1056,1064,1072,1080,1088,1096,1104,1112,1120,1128,1136,1144,1152,1160,1168,1176,1184,1192,1200,1208,1216,1224,1232,1240,1248,1256,1264,1272,1280,1288,1296,1304,1312,1320,1328,1336,1344,1352,1360,1368,1376,1384,1392,1400,1408,1416,1424,1432,1440,1448,1456,1464,1472,1480,1488,1496,1504,1512,1520,1528,1536,1544,1552,1560,1568,1576,1584,1592,1600,1608,1616,1624,1632,1640,1648,1656,1664,1672,1680,1688,1696,1704,1712,1720,1728,1736,1744,1752,1760,1768,1776,1784,1792,1800,1808,1816,1824,1832,1840,1848,1856,1864,1872,1880,1888,1896,1904,1912,1920,1928,1936,1944,1952,1960,1968,1976,1984,1992,2000,2008,2016,2024,2032,2040},{0,9,18,27,36,45,54,63,72,65,90,83,108,101,126,119,144,153,130,139,180,189,166,175,216,209,202,195,252,245,238,231,288,297,306,315,260,269,278,287,360,353,378,371,332,325,350,343,432,441,418,427,404,413,390,399,504,497,490,483,476,469,462,455,576,585,594,603,612,621,630,639,520,513,538,531,556,549,574,567,720,729,706,715,756,765,742,751,664,657,650,643,700,693,686,679,864,873,882,891,836,845,854,863,808,801,826,819,780,773,798,791,1008,1017,994,1003,980,989,966,975,952,945,938,931,924,917,910,903,1152,1161,1170,1179,1188,1197,1206,1215,1224,1217,1242,1235,1260,1253,1278,1271,1040,1049,1026,1035,1076,1085,1062,1071,1112,1105,1098,1091,1148,1141,1134,1127,1440,1449,1458,1467,1412,1421,1430,1439,1512,1505,1530,1523,1484,1477,1502,1495,1328,1337,1314,1323,1300,1309,1286,1295,1400,1393,1386,1379,1372,1365,1358,1351,1728,1737,1746,1755,1764,1773,1782,1791,1672,1665,1690,1683,1708,1701,1726,1719,1616,1625,1602,1611,1652,1661,1638,1647,1560,1553,1546,1539,1596,1589,1582,1575,2016,2025,2034,2043,1988,1997,2006,2015,1960,1953,1978,1971,1932,1925,1950,1943,1904,1913,1890,1899,1876,1885,1862,1871,1848,1841,1834,1827,1820,1813,1806,1799},{0,10,20,30,40,34,60,54,80,90,68,78,120,114,108,102,160,170,180,190,136,130,156,150,240,250,228,238,216,210,204,198,320,330,340,350,360,354,380,374,272,282,260,270,312,306,300,294,480,490,500,510,456,450,476,470,432,442,420,430,408,402,396,390,640,650,660,670,680,674,700,694,720,730,708,718,760,754,748,742,544,554,564,574,520,514,540,534,624,634,612,622,600,594,588,582,960,970,980,990,1000,994,1020,1014,912,922,900,910,952,946,940,934,864,874,884,894,840,834,860,854,816,826,804,814,792,786,780,774,1280,1290,1300,1310,1320,1314,1340,1334,1360,1370,1348,1358,1400,1394,1388,1382,1440,1450,1460,1470,1416,1410,1436,1430,1520,1530,1508,1518,1496,1490,1484,1478,1088,1098,1108,1118,1128,1122,1148,1142,1040,1050,1028,1038,1080,1074,1068,1062,1248,1258,1268,1278,1224,1218,1244,1238,1200,1210,1188,1198,1176,1170,1164,1158,1920,1930,1940,1950,1960,1954,1980,1974,2000,2010,1988,1998,2040,2034,2028,2022,1824,1834,1844,1854,1800,1794,1820,1814,1904,1914,1892,1902,1880,1874,1868,1862,1728,1738,1748,1758,1768,1762,1788,1782,1680,1690,1668,1678,1720,1714,1708,1702,1632,1642,1652,1662,1608,1602,1628,1622,1584,1594,1572,1582,1560,1554,1548,1542},{0,11,22,29,44,39,58,49,88,83,78,69,116,127,98,105,176,187,166,173,156,151,138,129,232,227,254,245,196,207,210,217,352,363,374,381,332,327,346,337,312,307,302,293,276,287,258,265,464,475,454,461,508,503,490,481,392,387,414,405,420,431,434,441,704,715,726,733,748,743,762,753,664,659,654,645,692,703,674,681,624,635,614,621,604,599,586,577,552,547,574,565,516,527,530,537,928,939,950,957,908,903,922,913,1016,1011,1006,997,980,991,962,969,784,795,774,781,828,823,810,801,840,835,862,853,868,879,882,889,1408,1419,1430,1437,1452,1447,1466,1457,1496,1491,1486,1477,1524,1535,1506,1513,1328,1339,1318,1325,1308,1303,1290,1281,1384,1379,1406,1397,1348,1359,1362,1369,1248,1259,1270,1277,1228,1223,1242,1233,1208,1203,1198,1189,1172,1183,1154,1161,1104,1115,1094,1101,1148,1143,1130,1121,1032,1027,1054,1045,1060,1071,1074,1081,1856,1867,1878,1885,1900,1895,1914,1905,1816,1811,1806,1797,1844,1855,1826,1833,2032,2043,2022,2029,2012,2007,1994,1985,1960,1955,1982,1973,1924,1935,1938,1945,1568,1579,1590,1597,1548,1543,1562,1553,1656,1651,1646,1637,1620,1631,1602,1609,1680,1691,1670,1677,1724,1719,1706,1697,1736,1731,1758,1749,1764,1775,1778,1785},{0,12,24,20,48,60,40,36,96,108,120,116,80,92,72,68,192,204,216,212,240,252,232,228,160,172,184,180,144,156,136,132,384,396,408,404,432,444,424,420,480,492,504,500,464,476,456,452,320,332,344,340,368,380,360,356,288,300,312,308,272,284,264,260,768,780,792,788,816,828,808,804,864,876,888,884,848,860,840,836,960,972,984,980,1008,1020,1000,996,928,940,952,948,912,924,904,900,640,652,664,660,688,700,680,676,736,748,760,756,720,732,712,708,576,588,600,596,624,636,616,612,544,556,568,564,528,540,520,516,1536,1548,1560,1556,1584,1596,1576,1572,1632,1644,1656,1652,1616,1628,1608,1604,1728,1740,1752,1748,1776,1788,1768,1764,1696,1708,1720,1716,1680,1692,1672,1668,1920,1932,1944,1940,1968,1980,1960,1956,2016,2028,2040,2036,2000,2012,1992,1988,1856,1868,1880,1876,1904,1916,1896,1892,1824,1836,1848,1844,1808,1820,1800,1796,1280,1292,1304,1300,1328,1340,1320,1316,1376,1388,1400,1396,1360,1372,1352,1348,1472,1484,1496,1492,1520,1532,1512,1508,1440,1452,1464,1460,1424,1436,1416,1412,1152,1164,1176,1172,1200,1212,1192,1188,1248,1260,1272,1268,1232,1244,1224,1220,1088,1100,1112,1108,1136,1148,1128,1124,1056,1068,1080,1076,1040,1052,1032,1028},{0,13,26,23,52,57,46,35,104,101,114,127,92,81,70,75,208,221,202,199,228,233,254,243,184,181,162,175,140,129,150,155,416,429,442,439,404,409,398,387,456,453,466,479,508,497,486,491,368,381,362,359,324,329,350,339,280,277,258,271,300,289,310,315,832,845,858,855,884,889,878,867,808,805,818,831,796,785,774,779,912,925,906,903,932,937,958,947,1016,1013,994,1007,972,961,982,987,736,749,762,759,724,729,718,707,648,645,658,671,700,689,678,683,560,573,554,551,516,521,542,531,600,597,578,591,620,609,630,635,1664,1677,1690,1687,1716,1721,1710,1699,1768,1765,1778,1791,1756,1745,1734,1739,1616,1629,1610,1607,1636,1641,1662,1651,1592,1589,1570,1583,1548,1537,1558,1563,1824,1837,1850,1847,1812,1817,1806,1795,1864,1861,1874,1887,1916,1905,1894,1899,2032,2045,2026,2023,1988,1993,2014,2003,1944,1941,1922,1935,1964,1953,1974,1979,1472,1485,1498,1495,1524,1529,1518,1507,1448,1445,1458,1471,1436,1425,1414,1419,1296,1309,1290,1287,1316,1321,1342,1331,1400,1397,1378,1391,1356,1345,1366,1371,1120,1133,1146,1143,1108,1113,1102,1091,1032,1029,1042,1055,1084,1073,1062,1067,1200,1213,1194,1191,1156,1161,1182,1171,1240,1237,1218,1231,1260,1249,1270,1275},{0,14,28,18,56,54,36,42,112,126,108,98,72,70,84,90,224,238,252,242,216,214,196,202,144,158,140,130,168,166,180,186,448,462,476,466,504,502,484,490,432,446,428,418,392,390,404,410,288,302,316,306,280,278,260,266,336,350,332,322,360,358,372,378,896,910,924,914,952,950,932,938,1008,1022,1004,994,968,966,980,986,864,878,892,882,856,854,836,842,784,798,780,770,808,806,820,826,576,590,604,594,632,630,612,618,560,574,556,546,520,518,532,538,672,686,700,690,664,662,644,650,720,734,716,706,744,742,756,762,1792,1806,1820,1810,1848,1846,1828,1834,1904,1918,1900,1890,1864,1862,1876,1882,2016,2030,2044,2034,2008,2006,1988,1994,1936,1950,1932,1922,1960,1958,1972,1978,1728,1742,1756,1746,1784,1782,1764,1770,1712,1726,1708,1698,1672,1670,1684,1690,1568,1582,1596,1586,1560,1558,1540,1546,1616,1630,1612,1602,1640,1638,1652,1658,1152,1166,1180,1170,1208,1206,1188,1194,1264,1278,1260,1250,1224,1222,1236,1242,1120,1134,1148,1138,1112,1110,1092,1098,1040,1054,1036,1026,1064,1062,1076,1082,1344,1358,1372,1362,1400,1398,1380,1386,1328,1342,1324,1314,1288,1286,1300,1306,1440,1454,1468,1458,1432,1430,1412,1418,1488,1502,1484,1474,1512,1510,1524,1530},{0,15,30,17,60,51,34,45,120,119,102,105,68,75,90,85,240,255,238,225,204,195,210,221,136,135,150,153,180,187,170,165,480,495,510,497,476,467,450,461,408,407,390,393,420,427,442,437,272,287,270,257,300,291,306,317,360,359,374,377,340,347,330,325,960,975,990,977,1020,1011,994,1005,952,951,934,937,900,907,922,917,816,831,814,801,780,771,786,797,840,839,854,857,884,891,874,869,544,559,574,561,540,531,514,525,600,599,582,585,612,619,634,629,720,735,718,705,748,739,754,765,680,679,694,697,660,667,650,645,1920,1935,1950,1937,1980,1971,1954,1965,2040,2039,2022,2025,1988,1995,2010,2005,1904,1919,1902,1889,1868,1859,1874,1885,1800,1799,1814,1817,1844,1851,1834,1829,1632,1647,1662,1649,1628,1619,1602,1613,1560,1559,1542,1545,1572,1579,1594,1589,1680,1695,1678,1665,1708,1699,1714,1725,1768,1767,1782,1785,1748,1755,1738,1733,1088,1103,1118,1105,1148,1139,1122,1133,1080,1079,1062,1065,1028,1035,1050,1045,1200,1215,1198,1185,1164,1155,1170,1181,1224,1223,1238,1241,1268,1275,1258,1253,1440,1455,1470,1457,1436,1427,1410,1421,1496,1495,1478,1481,1508,1515,1530,1525,1360,1375,1358,1345,1388,1379,1394,1405,1320,1319,1334,1337,1300,1307,1290,1285},{0,16,32,48,64,80,96,112,128,144,160,176,192,208,224,240,256,272,288,304,320,336,352,368,384,400,416,432,448,464,480,496,512,528,544,560,576,592,608,624,640,656,672,688,704,720,736,752,768,784,800,816,832,848,864,880,896,912,928,944,960,976,992,1008,1024,1040,1056,1072,1088,1104,1120,1136,1152,1168,1184,1200,1216,1232,1248,1264,1280,1296,1312,1328,1344,1360,1376,1392,1408,1424,1440,1456,1472,1488,1504,1520,1536,1552,1568,1584,1600,1616,1632,1648,1664,1680,1696,1712,1728,1744,1760,1776,1792,1808,1824,1840,1856,1872,1888,1904,1920,1936,1952,1968,1984,2000,2016,2032,2048,2064,2080,2096,2112,2128,2144,2160,2176,2192,2208,2224,2240,2256,2272,2288,2304,2320,2336,2352,2368,2384,2400,2416,2432,2448,2464,2480,2496,2512,2528,2544,2560,2576,2592,2608,2624,2640,2656,2672,2688,2704,2720,2736,2752,2768,2784,2800,2816,2832,2848,2864,2880,2896,2912,2928,2944,2960,2976,2992,3008,3024,3040,3056,3072,3088,3104,3120,3136,3152,3168,3184,3200,3216,3232,3248,3264,3280,3296,3312,3328,3344,3360,3376,3392,3408,3424,3440,3456,3472,3488,3504,3520,3536,3552,3568,3584,3600,3616,3632,3648,3664,3680,3696,3712,3728,3744,3760,3776,3792,3808,3824,3840,3856,3872,3888,3904,3920,3936,3952,3968,3984,4000,4016,4032,4048,4064,4080},{0,17,34,51,68,85,102,119,136,153,170,187,204,221,238,255,272,257,306,291,340,325,374,359,408,393,442,427,476,461,510,495,544,561,514,531,612,629,582,599,680,697,650,667,748,765,718,735,816,801,786,771,884,869,854,839,952,937,922,907,1020,1005,990,975,1088,1105,1122,1139,1028,1045,1062,1079,1224,1241,1258,1275,1164,1181,1198,1215,1360,1345,1394,1379,1300,1285,1334,1319,1496,1481,1530,1515,1436,1421,1470,1455,1632,1649,1602,1619,1572,1589,1542,1559,1768,1785,1738,1755,1708,1725,1678,1695,1904,1889,1874,1859,1844,1829,1814,1799,2040,2025,2010,1995,1980,1965,1950,1935,2176,2193,2210,2227,2244,2261,2278,2295,2056,2073,2090,2107,2124,2141,2158,2175,2448,2433,2482,2467,2516,2501,2550,2535,2328,2313,2362,2347,2396,2381,2430,2415,2720,2737,2690,2707,2788,2805,2758,2775,2600,2617,2570,2587,2668,2685,2638,2655,2992,2977,2962,2947,3060,3045,3030,3015,2872,2857,2842,2827,2940,2925,2910,2895,3264,3281,3298,3315,3204,3221,3238,3255,3144,3161,3178,3195,3084,3101,3118,3135,3536,3521,3570,3555,3476,3461,3510,3495,3416,3401,3450,3435,3356,3341,3390,3375,3808,3825,3778,3795,3748,3765,3718,3735,3688,3705,3658,3675,3628,3645,3598,3615,4080,4065,4050,4035,4020,4005,3990,3975,3960,3945,3930,3915,3900,3885,3870,3855},{0,18,36,54,72,90,108,126,144,130,180,166,216,202,252,238,288,306,260,278,360,378,332,350,432,418,404,390,504,490,476,462,576,594,612,630,520,538,556,574,720,706,756,742,664,650,700,686,864,882,836,854,808,826,780,798,1008,994,980,966,952,938,924,910,1152,1170,1188,1206,1224,1242,1260,1278,1040,1026,1076,1062,1112,1098,1148,1134,1440,1458,1412,1430,1512,1530,1484,1502,1328,1314,1300,1286,1400,1386,1372,1358,1728,1746,1764,1782,1672,1690,1708,1726,1616,1602,1652,1638,1560,1546,1596,1582,2016,2034,1988,2006,1960,1978,1932,1950,1904,1890,1876,1862,1848,1834,1820,1806,2304,2322,2340,2358,2376,2394,2412,2430,2448,2434,2484,2470,2520,2506,2556,2542,2080,2098,2052,2070,2152,2170,2124,2142,2224,2210,2196,2182,2296,2282,2268,2254,2880,2898,2916,2934,2824,2842,2860,2878,3024,3010,3060,3046,2968,2954,3004,2990,2656,2674,2628,2646,2600,2618,2572,2590,2800,2786,2772,2758,2744,2730,2716,2702,3456,3474,3492,3510,3528,3546,3564,3582,3344,3330,3380,3366,3416,3402,3452,3438,3232,3250,3204,3222,3304,3322,3276,3294,3120,3106,3092,3078,3192,3178,3164,3150,4032,4050,4068,4086,3976,3994,4012,4030,3920,3906,3956,3942,3864,3850,3900,3886,3808,3826,3780,3798,3752,3770,3724,3742,3696,3682,3668,3654,3640,3626,3612,3598},{0,19,38,53,76,95,106,121,152,139,190,173,212,199,242,225,304,291,278,261,380,367,346,329,424,443,398,413,484,503,450,465,608,627,582,597,556,575,522,537,760,747,734,717,692,679,658,641,848,835,886,869,796,783,826,809,968,987,1006,1021,900,919,930,945,1216,1235,1254,1269,1164,1183,1194,1209,1112,1099,1150,1133,1044,1031,1074,1057,1520,1507,1494,1477,1468,1455,1434,1417,1384,1403,1358,1373,1316,1335,1282,1297,1696,1715,1670,1685,1772,1791,1738,1753,1592,1579,1566,1549,1652,1639,1618,1601,1936,1923,1974,1957,2012,1999,2042,2025,1800,1819,1838,1853,1860,1879,1890,1905,2432,2451,2470,2485,2508,2527,2538,2553,2328,2315,2366,2349,2388,2375,2418,2401,2224,2211,2198,2181,2300,2287,2266,2249,2088,2107,2062,2077,2148,2167,2114,2129,3040,3059,3014,3029,2988,3007,2954,2969,2936,2923,2910,2893,2868,2855,2834,2817,2768,2755,2806,2789,2716,2703,2746,2729,2632,2651,2670,2685,2564,2583,2594,2609,3392,3411,3430,3445,3340,3359,3370,3385,3544,3531,3582,3565,3476,3463,3506,3489,3184,3171,3158,3141,3132,3119,3098,3081,3304,3323,3278,3293,3236,3255,3202,3217,3872,3891,3846,3861,3948,3967,3914,3929,4024,4011,3998,3981,4084,4071,4050,4033,3600,3587,3638,3621,3676,3663,3706,3689,3720,3739,3758,3773,3780,3799,3810,3825},{0,20,40,60,80,68,120,108,160,180,136,156,240,228,216,204,320,340,360,380,272,260,312,300,480,500,456,476,432,420,408,396,640,660,680,700,720,708,760,748,544,564,520,540,624,612,600,588,960,980,1000,1020,912,900,952,940,864,884,840,860,816,804,792,780,1280,1300,1320,1340,1360,1348,1400,1388,1440,1460,1416,1436,1520,1508,1496,1484,1088,1108,1128,1148,1040,1028,1080,1068,1248,1268,1224,1244,1200,1188,1176,1164,1920,1940,1960,1980,2000,1988,2040,2028,1824,1844,1800,1820,1904,1892,1880,1868,1728,1748,1768,1788,1680,1668,1720,1708,1632,1652,1608,1628,1584,1572,1560,1548,2560,2580,2600,2620,2640,2628,2680,2668,2720,2740,2696,2716,2800,2788,2776,2764,2880,2900,2920,2940,2832,2820,2872,2860,3040,3060,3016,3036,2992,2980,2968,2956,2176,2196,2216,2236,2256,2244,2296,2284,2080,2100,2056,2076,2160,2148,2136,2124,2496,2516,2536,2556,2448,2436,2488,2476,2400,2420,2376,2396,2352,2340,2328,2316,3840,3860,3880,3900,3920,3908,3960,3948,4000,4020,3976,3996,4080,4068,4056,4044,3648,3668,3688,3708,3600,3588,3640,3628,3808,3828,3784,3804,3760,3748,3736,3724,3456,3476,3496,3516,3536,3524,3576,3564,3360,3380,3336,3356,3440,3428,3416,3404,3264,3284,3304,3324,3216,3204,3256,3244,3168,3188,3144,3164,3120,3108,3096,3084},{0,21,42,63,84,65,126,107,168,189,130,151,252,233,214,195,336,325,378,367,260,273,302,315,504,493,466,455,428,441,390,403,672,693,650,671,756,737,734,715,520,541,546,567,604,585,630,611,1008,997,986,975,932,945,910,923,856,845,882,871,780,793,806,819,1344,1365,1386,1407,1300,1281,1342,1323,1512,1533,1474,1495,1468,1449,1430,1411,1040,1029,1082,1071,1092,1105,1134,1147,1208,1197,1170,1159,1260,1273,1222,1235,2016,2037,1994,2015,1972,1953,1950,1931,1864,1885,1890,1911,1820,1801,1846,1827,1712,1701,1690,1679,1764,1777,1742,1755,1560,1549,1586,1575,1612,1625,1638,1651,2688,2709,2730,2751,2772,2753,2814,2795,2600,2621,2562,2583,2684,2665,2646,2627,3024,3013,3066,3055,2948,2961,2990,3003,2936,2925,2898,2887,2860,2873,2822,2835,2080,2101,2058,2079,2164,2145,2142,2123,2184,2205,2210,2231,2268,2249,2294,2275,2416,2405,2394,2383,2340,2353,2318,2331,2520,2509,2546,2535,2444,2457,2470,2483,4032,4053,4074,4095,3988,3969,4030,4011,3944,3965,3906,3927,3900,3881,3862,3843,3728,3717,3770,3759,3780,3793,3822,3835,3640,3629,3602,3591,3692,3705,3654,3667,3424,3445,3402,3423,3380,3361,3358,3339,3528,3549,3554,3575,3484,3465,3510,3491,3120,3109,3098,3087,3172,3185,3150,3163,3224,3213,3250,3239,3276,3289,3302,3315},{0,22,44,58,88,78,116,98,176,166,156,138,232,254,196,210,352,374,332,346,312,302,276,258,464,454,508,490,392,414,420,434,704,726,748,762,664,654,692,674,624,614,604,586,552,574,516,530,928,950,908,922,1016,1006,980,962,784,774,828,810,840,862,868,882,1408,1430,1452,1466,1496,1486,1524,1506,1328,1318,1308,1290,1384,1406,1348,1362,1248,1270,1228,1242,1208,1198,1172,1154,1104,1094,1148,1130,1032,1054,1060,1074,1856,1878,1900,1914,1816,1806,1844,1826,2032,2022,2012,1994,1960,1982,1924,1938,1568,1590,1548,1562,1656,1646,1620,1602,1680,1670,1724,1706,1736,1758,1764,1778,2816,2838,2860,2874,2904,2894,2932,2914,2992,2982,2972,2954,3048,3070,3012,3026,2656,2678,2636,2650,2616,2606,2580,2562,2768,2758,2812,2794,2696,2718,2724,2738,2496,2518,2540,2554,2456,2446,2484,2466,2416,2406,2396,2378,2344,2366,2308,2322,2208,2230,2188,2202,2296,2286,2260,2242,2064,2054,2108,2090,2120,2142,2148,2162,3712,3734,3756,3770,3800,3790,3828,3810,3632,3622,3612,3594,3688,3710,3652,3666,4064,4086,4044,4058,4024,4014,3988,3970,3920,3910,3964,3946,3848,3870,3876,3890,3136,3158,3180,3194,3096,3086,3124,3106,3312,3302,3292,3274,3240,3262,3204,3218,3360,3382,3340,3354,3448,3438,3412,3394,3472,3462,3516,3498,3528,3550,3556,3570},{0,23,46,57,92,75,114,101,184,175,150,129,228,243,202,221,368,359,350,329,300,315,258,277,456,479,486,497,404,387,442,429,736,759,718,729,700,683,658,645,600,591,630,609,516,531,554,573,912,903,958,937,972,987,994,1013,808,831,774,785,884,867,858,845,1472,1495,1518,1529,1436,1419,1458,1445,1400,1391,1366,1345,1316,1331,1290,1309,1200,1191,1182,1161,1260,1275,1218,1237,1032,1055,1062,1073,1108,1091,1146,1133,1824,1847,1806,1817,1916,1899,1874,1861,1944,1935,1974,1953,1988,2003,2026,2045,1616,1607,1662,1641,1548,1563,1570,1589,1768,1791,1734,1745,1716,1699,1690,1677,2944,2967,2990,3001,3036,3019,3058,3045,2872,2863,2838,2817,2916,2931,2890,2909,2800,2791,2782,2761,2732,2747,2690,2709,2632,2655,2662,2673,2580,2563,2618,2605,2400,2423,2382,2393,2364,2347,2322,2309,2520,2511,2550,2529,2436,2451,2474,2493,2064,2055,2110,2089,2124,2139,2146,2165,2216,2239,2182,2193,2292,2275,2266,2253,3648,3671,3694,3705,3612,3595,3634,3621,3832,3823,3798,3777,3748,3763,3722,3741,3888,3879,3870,3849,3948,3963,3906,3925,3976,3999,4006,4017,4052,4035,4090,4077,3232,3255,3214,3225,3324,3307,3282,3269,3096,3087,3126,3105,3140,3155,3178,3197,3536,3527,3582,3561,3468,3483,3490,3509,3432,3455,3398,3409,3380,3363,3354,3341},{0,24,48,40,96,120,80,72,192,216,240,232,160,184,144,136,384,408,432,424,480,504,464,456,320,344,368,360,288,312,272,264,768,792,816,808,864,888,848,840,960,984,1008,1000,928,952,912,904,640,664,688,680,736,760,720,712,576,600,624,616,544,568,528,520,1536,1560,1584,1576,1632,1656,1616,1608,1728,1752,1776,1768,1696,1720,1680,1672,1920,1944,1968,1960,2016,2040,2000,1992,1856,1880,1904,1896,1824,1848,1808,1800,1280,1304,1328,1320,1376,1400,1360,1352,1472,1496,1520,1512,1440,1464,1424,1416,1152,1176,1200,1192,1248,1272,1232,1224,1088,1112,1136,1128,1056,1080,1040,1032,3072,3096,3120,3112,3168,3192,3152,3144,3264,3288,3312,3304,3232,3256,3216,3208,3456,3480,3504,3496,3552,3576,3536,3528,3392,3416,3440,3432,3360,3384,3344,3336,3840,3864,3888,3880,3936,3960,3920,3912,4032,4056,4080,4072,4000,4024,3984,3976,3712,3736,3760,3752,3808,3832,3792,3784,3648,3672,3696,3688,3616,3640,3600,3592,2560,2584,2608,2600,2656,2680,2640,2632,2752,2776,2800,2792,2720,2744,2704,2696,2944,2968,2992,2984,3040,3064,3024,3016,2880,2904,2928,2920,2848,2872,2832,2824,2304,2328,2352,2344,2400,2424,2384,2376,2496,2520,2544,2536,2464,2488,2448,2440,2176,2200,2224,2216,2272,2296,2256,2248,2112,2136,2160,2152,2080,2104,2064,2056},{0,25,50,43,100,125,86,79,200,209,250,227,172,181,158,135,400,393,418,443,500,493,454,479,344,321,362,371,316,293,270,279,800,825,786,779,836,861,886,879,1000,1009,986,963,908,917,958,935,688,681,642,667,724,717,742,767,632,609,586,595,540,517,558,567,1600,1625,1650,1643,1572,1597,1558,1551,1672,1681,1722,1699,1772,1781,1758,1735,2000,1993,2018,2043,1972,1965,1926,1951,1816,1793,1834,1843,1916,1893,1870,1879,1376,1401,1362,1355,1284,1309,1334,1327,1448,1457,1434,1411,1484,1493,1534,1511,1264,1257,1218,1243,1172,1165,1190,1215,1080,1057,1034,1043,1116,1093,1134,1143,3200,3225,3250,3243,3300,3325,3286,3279,3144,3153,3194,3171,3116,3125,3102,3079,3344,3337,3362,3387,3444,3437,3398,3423,3544,3521,3562,3571,3516,3493,3470,3479,4000,4025,3986,3979,4036,4061,4086,4079,3944,3953,3930,3907,3852,3861,3902,3879,3632,3625,3586,3611,3668,3661,3686,3711,3832,3809,3786,3795,3740,3717,3758,3767,2752,2777,2802,2795,2724,2749,2710,2703,2568,2577,2618,2595,2668,2677,2654,2631,2896,2889,2914,2939,2868,2861,2822,2847,2968,2945,2986,2995,3068,3045,3022,3031,2528,2553,2514,2507,2436,2461,2486,2479,2344,2353,2330,2307,2380,2389,2430,2407,2160,2153,2114,2139,2068,2061,2086,2111,2232,2209,2186,2195,2268,2245,2286,2295},{0,26,52,46,104,114,92,70,208,202,228,254,184,162,140,150,416,442,404,398,456,466,508,486,368,362,324,350,280,258,300,310,832,858,884,878,808,818,796,774,912,906,932,958,1016,994,972,982,736,762,724,718,648,658,700,678,560,554,516,542,600,578,620,630,1664,1690,1716,1710,1768,1778,1756,1734,1616,1610,1636,1662,1592,1570,1548,1558,1824,1850,1812,1806,1864,1874,1916,1894,2032,2026,1988,2014,1944,1922,1964,1974,1472,1498,1524,1518,1448,1458,1436,1414,1296,1290,1316,1342,1400,1378,1356,1366,1120,1146,1108,1102,1032,1042,1084,1062,1200,1194,1156,1182,1240,1218,1260,1270,3328,3354,3380,3374,3432,3442,3420,3398,3536,3530,3556,3582,3512,3490,3468,3478,3232,3258,3220,3214,3272,3282,3324,3302,3184,3178,3140,3166,3096,3074,3116,3126,3648,3674,3700,3694,3624,3634,3612,3590,3728,3722,3748,3774,3832,3810,3788,3798,4064,4090,4052,4046,3976,3986,4028,4006,3888,3882,3844,3870,3928,3906,3948,3958,2944,2970,2996,2990,3048,3058,3036,3014,2896,2890,2916,2942,2872,2850,2828,2838,2592,2618,2580,2574,2632,2642,2684,2662,2800,2794,2756,2782,2712,2690,2732,2742,2240,2266,2292,2286,2216,2226,2204,2182,2064,2058,2084,2110,2168,2146,2124,2134,2400,2426,2388,2382,2312,2322,2364,2342,2480,2474,2436,2462,2520,2498,2540,2550},{0,27,54,45,108,119,90,65,216,195,238,245,180,175,130,153,432,427,390,413,476,455,490,497,360,371,350,325,260,287,306,297,864,891,854,845,780,791,826,801,952,931,910,917,980,975,994,1017,720,715,742,765,700,679,650,657,520,531,574,549,612,639,594,585,1728,1755,1782,1773,1708,1719,1690,1665,1560,1539,1582,1589,1652,1647,1602,1625,1904,1899,1862,1885,1820,1799,1834,1841,1960,1971,1950,1925,1988,2015,2034,2025,1440,1467,1430,1421,1484,1495,1530,1505,1400,1379,1358,1365,1300,1295,1314,1337,1040,1035,1062,1085,1148,1127,1098,1105,1224,1235,1278,1253,1188,1215,1170,1161,3456,3483,3510,3501,3564,3575,3546,3521,3416,3395,3438,3445,3380,3375,3330,3353,3120,3115,3078,3101,3164,3143,3178,3185,3304,3315,3294,3269,3204,3231,3250,3241,3808,3835,3798,3789,3724,3735,3770,3745,3640,3619,3598,3605,3668,3663,3682,3705,3920,3915,3942,3965,3900,3879,3850,3857,3976,3987,4030,4005,4068,4095,4050,4041,2880,2907,2934,2925,2860,2871,2842,2817,2968,2947,2990,2997,3060,3055,3010,3033,2800,2795,2758,2781,2716,2695,2730,2737,2600,2611,2590,2565,2628,2655,2674,2665,2080,2107,2070,2061,2124,2135,2170,2145,2296,2275,2254,2261,2196,2191,2210,2233,2448,2443,2470,2493,2556,2535,2506,2513,2376,2387,2430,2405,2340,2367,2322,2313},{0,28,56,36,112,108,72,84,224,252,216,196,144,140,168,180,448,476,504,484,432,428,392,404,288,316,280,260,336,332,360,372,896,924,952,932,1008,1004,968,980,864,892,856,836,784,780,808,820,576,604,632,612,560,556,520,532,672,700,664,644,720,716,744,756,1792,1820,1848,1828,1904,1900,1864,1876,2016,2044,2008,1988,1936,1932,1960,1972,1728,1756,1784,1764,1712,1708,1672,1684,1568,1596,1560,1540,1616,1612,1640,1652,1152,1180,1208,1188,1264,1260,1224,1236,1120,1148,1112,1092,1040,1036,1064,1076,1344,1372,1400,1380,1328,1324,1288,1300,1440,1468,1432,1412,1488,1484,1512,1524,3584,3612,3640,3620,3696,3692,3656,3668,3808,3836,3800,3780,3728,3724,3752,3764,4032,4060,4088,4068,4016,4012,3976,3988,3872,3900,3864,3844,3920,3916,3944,3956,3456,3484,3512,3492,3568,3564,3528,3540,3424,3452,3416,3396,3344,3340,3368,3380,3136,3164,3192,3172,3120,3116,3080,3092,3232,3260,3224,3204,3280,3276,3304,3316,2304,2332,2360,2340,2416,2412,2376,2388,2528,2556,2520,2500,2448,2444,2472,2484,2240,2268,2296,2276,2224,2220,2184,2196,2080,2108,2072,2052,2128,2124,2152,2164,2688,2716,2744,2724,2800,2796,2760,2772,2656,2684,2648,2628,2576,2572,2600,2612,2880,2908,2936,2916,2864,2860,2824,2836,2976,3004,2968,2948,3024,3020,3048,3060},{0,29,58,39,116,105,78,83,232,245,210,207,156,129,166,187,464,461,490,503,420,441,414,387,312,293,258,287,332,337,374,363,928,957,922,903,980,969,1006,1011,840,853,882,879,828,801,774,795,624,621,586,599,516,537,574,547,664,645,674,703,748,753,726,715,1856,1885,1914,1895,1844,1833,1806,1811,1960,1973,1938,1935,2012,1985,2022,2043,1680,1677,1706,1719,1764,1785,1758,1731,1656,1637,1602,1631,1548,1553,1590,1579,1248,1277,1242,1223,1172,1161,1198,1203,1032,1045,1074,1071,1148,1121,1094,1115,1328,1325,1290,1303,1348,1369,1406,1379,1496,1477,1506,1535,1452,1457,1430,1419,3712,3741,3770,3751,3828,3817,3790,3795,3688,3701,3666,3663,3612,3585,3622,3643,3920,3917,3946,3959,3876,3897,3870,3843,4024,4005,3970,3999,4044,4049,4086,4075,3360,3389,3354,3335,3412,3401,3438,3443,3528,3541,3570,3567,3516,3489,3462,3483,3312,3309,3274,3287,3204,3225,3262,3235,3096,3077,3106,3135,3180,3185,3158,3147,2496,2525,2554,2535,2484,2473,2446,2451,2344,2357,2322,2319,2396,2369,2406,2427,2064,2061,2090,2103,2148,2169,2142,2115,2296,2277,2242,2271,2188,2193,2230,2219,2656,2685,2650,2631,2580,2569,2606,2611,2696,2709,2738,2735,2812,2785,2758,2779,2992,2989,2954,2967,3012,3033,3070,3043,2904,2885,2914,2943,2860,2865,2838,2827},{0,30,60,34,120,102,68,90,240,238,204,210,136,150,180,170,480,510,476,450,408,390,420,442,272,270,300,306,360,374,340,330,960,990,1020,994,952,934,900,922,816,814,780,786,840,854,884,874,544,574,540,514,600,582,612,634,720,718,748,754,680,694,660,650,1920,1950,1980,1954,2040,2022,1988,2010,1904,1902,1868,1874,1800,1814,1844,1834,1632,1662,1628,1602,1560,1542,1572,1594,1680,1678,1708,1714,1768,1782,1748,1738,1088,1118,1148,1122,1080,1062,1028,1050,1200,1198,1164,1170,1224,1238,1268,1258,1440,1470,1436,1410,1496,1478,1508,1530,1360,1358,1388,1394,1320,1334,1300,1290,3840,3870,3900,3874,3960,3942,3908,3930,4080,4078,4044,4050,3976,3990,4020,4010,3808,3838,3804,3778,3736,3718,3748,3770,3600,3598,3628,3634,3688,3702,3668,3658,3264,3294,3324,3298,3256,3238,3204,3226,3120,3118,3084,3090,3144,3158,3188,3178,3360,3390,3356,3330,3416,3398,3428,3450,3536,3534,3564,3570,3496,3510,3476,3466,2176,2206,2236,2210,2296,2278,2244,2266,2160,2158,2124,2130,2056,2070,2100,2090,2400,2430,2396,2370,2328,2310,2340,2362,2448,2446,2476,2482,2536,2550,2516,2506,2880,2910,2940,2914,2872,2854,2820,2842,2992,2990,2956,2962,3016,3030,3060,3050,2720,2750,2716,2690,2776,2758,2788,2810,2640,2638,2668,2674,2600,2614,2580,2570},{0,31,62,33,124,99,66,93,248,231,198,217,132,155,186,165,496,495,462,465,396,403,434,429,264,279,310,297,372,363,330,341,992,1023,990,961,924,899,930,957,792,775,806,825,868,891,858,837,528,527,558,561,620,627,594,589,744,759,726,713,660,651,682,693,1984,2015,2046,2017,1980,1955,1922,1949,1848,1831,1798,1817,1860,1883,1914,1893,1584,1583,1550,1553,1612,1619,1650,1645,1736,1751,1782,1769,1716,1707,1674,1685,1056,1087,1054,1025,1116,1091,1122,1149,1240,1223,1254,1273,1188,1211,1178,1157,1488,1487,1518,1521,1452,1459,1426,1421,1320,1335,1302,1289,1364,1355,1386,1397,3968,3999,4030,4001,4092,4067,4034,4061,3960,3943,3910,3929,3844,3867,3898,3877,3696,3695,3662,3665,3596,3603,3634,3629,3720,3735,3766,3753,3828,3819,3786,3797,3168,3199,3166,3137,3100,3075,3106,3133,3224,3207,3238,3257,3300,3323,3290,3269,3472,3471,3502,3505,3564,3571,3538,3533,3432,3447,3414,3401,3348,3339,3370,3381,2112,2143,2174,2145,2108,2083,2050,2077,2232,2215,2182,2201,2244,2267,2298,2277,2480,2479,2446,2449,2508,2515,2546,2541,2376,2391,2422,2409,2356,2347,2314,2325,2976,3007,2974,2945,3036,3011,3042,3069,2904,2887,2918,2937,2852,2875,2842,2821,2640,2639,2670,2673,2604,2611,2578,2573,2728,2743,2710,2697,2772,2763,2794,2805},{0,32,64,96,128,160,192,224,256,288,320,352,384,416,448,480,512,544,576,608,640,672,704,736,768,800,832,864,896,928,960,992,1024,1056,1088,1120,1152,1184,1216,1248,1280,1312,1344,1376,1408,1440,1472,1504,1536,1568,1600,1632,1664,1696,1728,1760,1792,1824,1856,1888,1920,1952,1984,2016,2048,2080,2112,2144,2176,2208,2240,2272,2304,2336,2368,2400,2432,2464,2496,2528,2560,2592,2624,2656,2688,2720,2752,2784,2816,2848,2880,2912,2944,2976,3008,3040,3072,3104,3136,3168,3200,3232,3264,3296,3328,3360,3392,3424,3456,3488,3520,3552,3584,3616,3648,3680,3712,3744,3776,3808,3840,3872,3904,3936,3968,4000,4032,4064,4096,4128,4160,4192,4224,4256,4288,4320,4352,4384,4416,4448,4480,4512,4544,4576,4608,4640,4672,4704,4736,4768,4800,4832,4864,4896,4928,4960,4992,5024,5056,5088,5120,5152,5184,5216,5248,5280,5312,5344,5376,5408,5440,5472,5504,5536,5568,5600,5632,5664,5696,5728,5760,5792,5824,5856,5888,5920,5952,5984,6016,6048,6080,6112,6144,6176,6208,6240,6272,6304,6336,6368,6400,6432,6464,6496,6528,6560,6592,6624,6656,6688,6720,6752,6784,6816,6848,6880,6912,6944,6976,7008,7040,7072,7104,7136,7168,7200,7232,7264,7296,7328,7360,7392,7424,7456,7488,7520,7552,7584,7616,7648,7680,7712,7744,7776,7808,7840,7872,7904,7936,7968,8000,8032,8064,8096,8128,8160},{0,33,66,99,132,165,198,231,264,297,330,363,396,429,462,495,528,561,594,627,660,693,726,759,792,825,858,891,924,957,990,1023,1056,1025,1122,1091,1188,1157,1254,1223,1320,1289,1386,1355,1452,1421,1518,1487,1584,1553,1650,1619,1716,1685,1782,1751,1848,1817,1914,1883,1980,1949,2046,2015,2112,2145,2050,2083,2244,2277,2182,2215,2376,2409,2314,2347,2508,2541,2446,2479,2640,2673,2578,2611,2772,2805,2710,2743,2904,2937,2842,2875,3036,3069,2974,3007,3168,3137,3106,3075,3300,3269,3238,3207,3432,3401,3370,3339,3564,3533,3502,3471,3696,3665,3634,3603,3828,3797,3766,3735,3960,3929,3898,3867,4092,4061,4030,3999,4224,4257,4290,4323,4100,4133,4166,4199,4488,4521,4554,4587,4364,4397,4430,4463,4752,4785,4818,4851,4628,4661,4694,4727,5016,5049,5082,5115,4892,4925,4958,4991,5280,5249,5346,5315,5156,5125,5222,5191,5544,5513,5610,5579,5420,5389,5486,5455,5808,5777,5874,5843,5684,5653,5750,5719,6072,6041,6138,6107,5948,5917,6014,5983,6336,6369,6274,6307,6212,6245,6150,6183,6600,6633,6538,6571,6476,6509,6414,6447,6864,6897,6802,6835,6740,6773,6678,6711,7128,7161,7066,7099,7004,7037,6942,6975,7392,7361,7330,7299,7268,7237,7206,7175,7656,7625,7594,7563,7532,7501,7470,7439,7920,7889,7858,7827,7796,7765,7734,7703,8184,8153,8122,8091,8060,8029,7998,7967},{0,34,68,102,136,170,204,238,272,306,340,374,408,442,476,510,544,514,612,582,680,650,748,718,816,786,884,854,952,922,1020,990,1088,1122,1028,1062,1224,1258,1164,1198,1360,1394,1300,1334,1496,1530,1436,1470,1632,1602,1572,1542,1768,1738,1708,1678,1904,1874,1844,1814,2040,2010,1980,1950,2176,2210,2244,2278,2056,2090,2124,2158,2448,2482,2516,2550,2328,2362,2396,2430,2720,2690,2788,2758,2600,2570,2668,2638,2992,2962,3060,3030,2872,2842,2940,2910,3264,3298,3204,3238,3144,3178,3084,3118,3536,3570,3476,3510,3416,3450,3356,3390,3808,3778,3748,3718,3688,3658,3628,3598,4080,4050,4020,3990,3960,3930,3900,3870,4352,4386,4420,4454,4488,4522,4556,4590,4112,4146,4180,4214,4248,4282,4316,4350,4896,4866,4964,4934,5032,5002,5100,5070,4656,4626,4724,4694,4792,4762,4860,4830,5440,5474,5380,5414,5576,5610,5516,5550,5200,5234,5140,5174,5336,5370,5276,5310,5984,5954,5924,5894,6120,6090,6060,6030,5744,5714,5684,5654,5880,5850,5820,5790,6528,6562,6596,6630,6408,6442,6476,6510,6288,6322,6356,6390,6168,6202,6236,6270,7072,7042,7140,7110,6952,6922,7020,6990,6832,6802,6900,6870,6712,6682,6780,6750,7616,7650,7556,7590,7496,7530,7436,7470,7376,7410,7316,7350,7256,7290,7196,7230,8160,8130,8100,8070,8040,8010,7980,7950,7920,7890,7860,7830,7800,7770,7740,7710},{0,35,70,101,140,175,202,233,280,315,350,381,404,439,466,497,560,531,630,597,700,671,762,729,808,779,878,845,932,903,994,961,1120,1091,1062,1029,1260,1231,1194,1161,1400,1371,1342,1309,1524,1495,1458,1425,1616,1651,1558,1589,1756,1791,1690,1721,1864,1899,1806,1837,1988,2023,1922,1953,2240,2275,2182,2213,2124,2159,2058,2089,2520,2555,2462,2493,2388,2423,2322,2353,2800,2771,2742,2709,2684,2655,2618,2585,3048,3019,2990,2957,2916,2887,2850,2817,3232,3203,3302,3269,3116,3087,3178,3145,3512,3483,3582,3549,3380,3351,3442,3409,3728,3763,3798,3829,3612,3647,3674,3705,3976,4011,4046,4077,3844,3879,3906,3937,4480,4515,4550,4581,4364,4399,4426,4457,4248,4283,4318,4349,4116,4151,4178,4209,5040,5011,5110,5077,4924,4895,4986,4953,4776,4747,4846,4813,4644,4615,4706,4673,5600,5571,5542,5509,5484,5455,5418,5385,5368,5339,5310,5277,5236,5207,5170,5137,6096,6131,6038,6069,5980,6015,5914,5945,5832,5867,5774,5805,5700,5735,5634,5665,6464,6499,6406,6437,6604,6639,6538,6569,6232,6267,6174,6205,6356,6391,6290,6321,7024,6995,6966,6933,7164,7135,7098,7065,6760,6731,6702,6669,6884,6855,6818,6785,7456,7427,7526,7493,7596,7567,7658,7625,7224,7195,7294,7261,7348,7319,7410,7377,7952,7987,8022,8053,8092,8127,8154,8185,7688,7723,7758,7789,7812,7847,7874,7905},{0,36,72,108,144,180,216,252,288,260,360,332,432,404,504,476,576,612,520,556,720,756,664,700,864,836,808,780,1008,980,952,924,1152,1188,1224,1260,1040,1076,1112,1148,1440,1412,1512,1484,1328,1300,1400,1372,1728,1764,1672,1708,1616,1652,1560,1596,2016,1988,1960,1932,1904,1876,1848,1820,2304,2340,2376,2412,2448,2484,2520,2556,2080,2052,2152,2124,2224,2196,2296,2268,2880,2916,2824,2860,3024,3060,2968,3004,2656,2628,2600,2572,2800,2772,2744,2716,3456,3492,3528,3564,3344,3380,3416,3452,3232,3204,3304,3276,3120,3092,3192,3164,4032,4068,3976,4012,3920,3956,3864,3900,3808,3780,3752,3724,3696,3668,3640,3612,4608,4644,4680,4716,4752,4788,4824,4860,4896,4868,4968,4940,5040,5012,5112,5084,4160,4196,4104,4140,4304,4340,4248,4284,4448,4420,4392,4364,4592,4564,4536,4508,5760,5796,5832,5868,5648,5684,5720,5756,6048,6020,6120,6092,5936,5908,6008,5980,5312,5348,5256,5292,5200,5236,5144,5180,5600,5572,5544,5516,5488,5460,5432,5404,6912,6948,6984,7020,7056,7092,7128,7164,6688,6660,6760,6732,6832,6804,6904,6876,6464,6500,6408,6444,6608,6644,6552,6588,6240,6212,6184,6156,6384,6356,6328,6300,8064,8100,8136,8172,7952,7988,8024,8060,7840,7812,7912,7884,7728,7700,7800,7772,7616,7652,7560,7596,7504,7540,7448,7484,7392,7364,7336,7308,7280,7252,7224,7196},{0,37,74,111,148,177,222,251,296,269,354,327,444,409,502,467,592,629,538,575,708,737,654,683,888,861,818,791,1004,969,934,899,1184,1157,1258,1231,1076,1041,1150,1115,1416,1453,1474,1511,1308,1337,1366,1395,1776,1749,1722,1695,1636,1601,1582,1547,2008,2045,1938,1975,1868,1897,1798,1827,2368,2405,2314,2351,2516,2545,2462,2491,2152,2125,2082,2055,2300,2265,2230,2195,2832,2869,2906,2943,2948,2977,3022,3051,2616,2589,2674,2647,2732,2697,2790,2755,3552,3525,3498,3471,3444,3409,3390,3355,3272,3309,3202,3239,3164,3193,3094,3123,4016,3989,4090,4063,3876,3841,3950,3915,3736,3773,3794,3831,3596,3625,3654,3683,4736,4773,4810,4847,4628,4657,4702,4731,5032,5005,5090,5063,4924,4889,4982,4947,4304,4341,4250,4287,4164,4193,4110,4139,4600,4573,4530,4503,4460,4425,4390,4355,5664,5637,5738,5711,5812,5777,5886,5851,5896,5933,5954,5991,6044,6073,6102,6131,5232,5205,5178,5151,5348,5313,5294,5259,5464,5501,5394,5431,5580,5609,5510,5539,7104,7141,7050,7087,6996,7025,6942,6971,6888,6861,6818,6791,6780,6745,6710,6675,6544,6581,6618,6655,6404,6433,6478,6507,6328,6301,6386,6359,6188,6153,6246,6211,8032,8005,7978,7951,8180,8145,8126,8091,7752,7789,7682,7719,7900,7929,7830,7859,7472,7445,7546,7519,7588,7553,7662,7627,7192,7229,7250,7287,7308,7337,7366,7395},{0,38,76,106,152,190,212,242,304,278,380,346,424,398,484,450,608,582,556,522,760,734,692,658,848,886,796,826,968,1006,900,930,1216,1254,1164,1194,1112,1150,1044,1074,1520,1494,1468,1434,1384,1358,1316,1282,1696,1670,1772,1738,1592,1566,1652,1618,1936,1974,2012,2042,1800,1838,1860,1890,2432,2470,2508,2538,2328,2366,2388,2418,2224,2198,2300,2266,2088,2062,2148,2114,3040,3014,2988,2954,2936,2910,2868,2834,2768,2806,2716,2746,2632,2670,2564,2594,3392,3430,3340,3370,3544,3582,3476,3506,3184,3158,3132,3098,3304,3278,3236,3202,3872,3846,3948,3914,4024,3998,4084,4050,3600,3638,3676,3706,3720,3758,3780,3810,4864,4902,4940,4970,5016,5054,5076,5106,4656,4630,4732,4698,4776,4750,4836,4802,4448,4422,4396,4362,4600,4574,4532,4498,4176,4214,4124,4154,4296,4334,4228,4258,6080,6118,6028,6058,5976,6014,5908,5938,5872,5846,5820,5786,5736,5710,5668,5634,5536,5510,5612,5578,5432,5406,5492,5458,5264,5302,5340,5370,5128,5166,5188,5218,6784,6822,6860,6890,6680,6718,6740,6770,7088,7062,7164,7130,6952,6926,7012,6978,6368,6342,6316,6282,6264,6238,6196,6162,6608,6646,6556,6586,6472,6510,6404,6434,7744,7782,7692,7722,7896,7934,7828,7858,8048,8022,7996,7962,8168,8142,8100,8066,7200,7174,7276,7242,7352,7326,7412,7378,7440,7478,7516,7546,7560,7598,7620,7650},{0,39,78,105,156,187,210,245,312,287,374,337,420,387,490,461,624,599,574,537,748,715,674,645,840,879,774,801,980,1011,922,957,1248,1223,1198,1161,1148,1115,1074,1045,1496,1535,1430,1457,1348,1379,1290,1325,1680,1719,1758,1785,1548,1579,1602,1637,1960,1935,2022,1985,1844,1811,1914,1885,2496,2535,2446,2473,2396,2427,2322,2357,2296,2271,2230,2193,2148,2115,2090,2061,2992,2967,3070,3033,2860,2827,2914,2885,2696,2735,2758,2785,2580,2611,2650,2685,3360,3335,3438,3401,3516,3483,3570,3541,3096,3135,3158,3185,3204,3235,3274,3309,3920,3959,3870,3897,4044,4075,3970,4005,3688,3663,3622,3585,3828,3795,3770,3741,4992,5031,5070,5097,4892,4923,4946,4981,4792,4767,4854,4817,4644,4611,4714,4685,4592,4567,4542,4505,4460,4427,4386,4357,4296,4335,4230,4257,4180,4211,4122,4157,5984,5959,5934,5897,6140,6107,6066,6037,5720,5759,5654,5681,5828,5859,5770,5805,5392,5431,5470,5497,5516,5547,5570,5605,5160,5135,5222,5185,5300,5267,5370,5341,6720,6759,6670,6697,6876,6907,6802,6837,7032,7007,6966,6929,7140,7107,7082,7053,6192,6167,6270,6233,6316,6283,6370,6341,6408,6447,6470,6497,6548,6579,6618,6653,7840,7815,7918,7881,7740,7707,7794,7765,8088,8127,8150,8177,7940,7971,8010,8045,7376,7415,7326,7353,7244,7275,7170,7205,7656,7631,7590,7553,7540,7507,7482,7453},{0,40,80,120,160,136,240,216,320,360,272,312,480,456,432,408,640,680,720,760,544,520,624,600,960,1000,912,952,864,840,816,792,1280,1320,1360,1400,1440,1416,1520,1496,1088,1128,1040,1080,1248,1224,1200,1176,1920,1960,2000,2040,1824,1800,1904,1880,1728,1768,1680,1720,1632,1608,1584,1560,2560,2600,2640,2680,2720,2696,2800,2776,2880,2920,2832,2872,3040,3016,2992,2968,2176,2216,2256,2296,2080,2056,2160,2136,2496,2536,2448,2488,2400,2376,2352,2328,3840,3880,3920,3960,4000,3976,4080,4056,3648,3688,3600,3640,3808,3784,3760,3736,3456,3496,3536,3576,3360,3336,3440,3416,3264,3304,3216,3256,3168,3144,3120,3096,5120,5160,5200,5240,5280,5256,5360,5336,5440,5480,5392,5432,5600,5576,5552,5528,5760,5800,5840,5880,5664,5640,5744,5720,6080,6120,6032,6072,5984,5960,5936,5912,4352,4392,4432,4472,4512,4488,4592,4568,4160,4200,4112,4152,4320,4296,4272,4248,4992,5032,5072,5112,4896,4872,4976,4952,4800,4840,4752,4792,4704,4680,4656,4632,7680,7720,7760,7800,7840,7816,7920,7896,8000,8040,7952,7992,8160,8136,8112,8088,7296,7336,7376,7416,7200,7176,7280,7256,7616,7656,7568,7608,7520,7496,7472,7448,6912,6952,6992,7032,7072,7048,7152,7128,6720,6760,6672,6712,6880,6856,6832,6808,6528,6568,6608,6648,6432,6408,6512,6488,6336,6376,6288,6328,6240,6216,6192,6168},{0,41,82,123,164,141,246,223,328,353,282,307,492,453,446,407,656,697,706,747,564,541,614,591,984,1009,906,931,892,853,814,775,1312,1289,1394,1371,1412,1453,1494,1535,1128,1089,1082,1043,1228,1253,1182,1207,1968,1945,2018,1995,1812,1853,1862,1903,1784,1745,1706,1667,1628,1653,1550,1575,2624,2665,2578,2619,2788,2765,2742,2719,2824,2849,2906,2931,2988,2949,3070,3031,2256,2297,2178,2219,2164,2141,2086,2063,2456,2481,2506,2531,2364,2325,2414,2375,3936,3913,3890,3867,4036,4077,3990,4031,3624,3585,3706,3667,3724,3749,3806,3831,3568,3545,3490,3467,3412,3453,3334,3375,3256,3217,3306,3267,3100,3125,3150,3175,5248,5289,5330,5371,5156,5133,5238,5215,5576,5601,5530,5555,5484,5445,5438,5399,5648,5689,5698,5739,5812,5789,5862,5839,5976,6001,5898,5923,6140,6101,6062,6023,4512,4489,4594,4571,4356,4397,4438,4479,4328,4289,4282,4243,4172,4197,4126,4151,4912,4889,4962,4939,5012,5053,5062,5103,4728,4689,4650,4611,4828,4853,4750,4775,7872,7913,7826,7867,7780,7757,7734,7711,8072,8097,8154,8179,7980,7941,8062,8023,7248,7289,7170,7211,7412,7389,7334,7311,7448,7473,7498,7523,7612,7573,7662,7623,7136,7113,7090,7067,6980,7021,6934,6975,6824,6785,6906,6867,6668,6693,6750,6775,6512,6489,6434,6411,6612,6653,6534,6575,6200,6161,6250,6211,6300,6325,6350,6375},{0,42,84,126,168,130,252,214,336,378,260,302,504,466,428,390,672,650,756,734,520,546,604,630,1008,986,932,910,856,882,780,806,1344,1386,1300,1342,1512,1474,1468,1430,1040,1082,1092,1134,1208,1170,1260,1222,2016,1994,1972,1950,1864,1890,1820,1846,1712,1690,1764,1742,1560,1586,1612,1638,2688,2730,2772,2814,2600,2562,2684,2646,3024,3066,2948,2990,2936,2898,2860,2822,2080,2058,2164,2142,2184,2210,2268,2294,2416,2394,2340,2318,2520,2546,2444,2470,4032,4074,3988,4030,3944,3906,3900,3862,3728,3770,3780,3822,3640,3602,3692,3654,3424,3402,3380,3358,3528,3554,3484,3510,3120,3098,3172,3150,3224,3250,3276,3302,5376,5418,5460,5502,5544,5506,5628,5590,5200,5242,5124,5166,5368,5330,5292,5254,6048,6026,6132,6110,5896,5922,5980,6006,5872,5850,5796,5774,5720,5746,5644,5670,4160,4202,4116,4158,4328,4290,4284,4246,4368,4410,4420,4462,4536,4498,4588,4550,4832,4810,4788,4766,4680,4706,4636,4662,5040,5018,5092,5070,4888,4914,4940,4966,8064,8106,8148,8190,7976,7938,8060,8022,7888,7930,7812,7854,7800,7762,7724,7686,7456,7434,7540,7518,7560,7586,7644,7670,7280,7258,7204,7182,7384,7410,7308,7334,6848,6890,6804,6846,6760,6722,6716,6678,7056,7098,7108,7150,6968,6930,7020,6982,6240,6218,6196,6174,6344,6370,6300,6326,6448,6426,6500,6478,6552,6578,6604,6630},{0,43,86,125,172,135,250,209,344,371,270,293,500,479,418,393,688,667,742,717,540,567,586,609,1000,963,958,917,836,879,786,825,1376,1355,1334,1309,1484,1511,1434,1457,1080,1043,1134,1093,1172,1215,1218,1257,2000,2043,1926,1965,1916,1879,1834,1793,1672,1699,1758,1781,1572,1551,1650,1625,2752,2795,2710,2749,2668,2631,2618,2577,2968,2995,3022,3045,2868,2847,2914,2889,2160,2139,2086,2061,2268,2295,2186,2209,2344,2307,2430,2389,2436,2479,2514,2553,4000,3979,4086,4061,3852,3879,3930,3953,3832,3795,3758,3717,3668,3711,3586,3625,3344,3387,3398,3437,3516,3479,3562,3521,3144,3171,3102,3125,3300,3279,3250,3225,5504,5547,5590,5629,5420,5383,5498,5457,5336,5363,5262,5285,5236,5215,5154,5129,5936,5915,5990,5965,6044,6071,6090,6113,5736,5699,5694,5653,5828,5871,5778,5817,4320,4299,4278,4253,4172,4199,4122,4145,4536,4499,4590,4549,4372,4415,4418,4457,4688,4731,4614,4653,4860,4823,4778,4737,4872,4899,4958,4981,5028,5007,5106,5081,8000,8043,7958,7997,8172,8135,8122,8081,7704,7731,7758,7781,7860,7839,7906,7881,7664,7643,7590,7565,7516,7543,7434,7457,7336,7299,7422,7381,7172,7215,7250,7289,6688,6667,6774,6749,6796,6823,6874,6897,7032,6995,6958,6917,7124,7167,7042,7081,6288,6331,6342,6381,6204,6167,6250,6209,6600,6627,6558,6581,6500,6479,6450,6425},{0,44,88,116,176,156,232,196,352,332,312,276,464,508,392,420,704,748,664,692,624,604,552,516,928,908,1016,980,784,828,840,868,1408,1452,1496,1524,1328,1308,1384,1348,1248,1228,1208,1172,1104,1148,1032,1060,1856,1900,1816,1844,2032,2012,1960,1924,1568,1548,1656,1620,1680,1724,1736,1764,2816,2860,2904,2932,2992,2972,3048,3012,2656,2636,2616,2580,2768,2812,2696,2724,2496,2540,2456,2484,2416,2396,2344,2308,2208,2188,2296,2260,2064,2108,2120,2148,3712,3756,3800,3828,3632,3612,3688,3652,4064,4044,4024,3988,3920,3964,3848,3876,3136,3180,3096,3124,3312,3292,3240,3204,3360,3340,3448,3412,3472,3516,3528,3556,5632,5676,5720,5748,5808,5788,5864,5828,5984,5964,5944,5908,6096,6140,6024,6052,5312,5356,5272,5300,5232,5212,5160,5124,5536,5516,5624,5588,5392,5436,5448,5476,4992,5036,5080,5108,4912,4892,4968,4932,4832,4812,4792,4756,4688,4732,4616,4644,4416,4460,4376,4404,4592,4572,4520,4484,4128,4108,4216,4180,4240,4284,4296,4324,7424,7468,7512,7540,7600,7580,7656,7620,7264,7244,7224,7188,7376,7420,7304,7332,8128,8172,8088,8116,8048,8028,7976,7940,7840,7820,7928,7892,7696,7740,7752,7780,6272,6316,6360,6388,6192,6172,6248,6212,6624,6604,6584,6548,6480,6524,6408,6436,6720,6764,6680,6708,6896,6876,6824,6788,6944,6924,7032,6996,7056,7100,7112,7140},{0,45,90,119,180,153,238,195,360,325,306,287,476,497,390,427,720,765,650,679,612,585,574,531,952,917,994,975,780,801,854,891,1440,1421,1530,1495,1300,1337,1358,1379,1224,1253,1170,1215,1148,1105,1062,1035,1904,1885,1834,1799,1988,2025,1950,1971,1560,1589,1602,1647,1708,1665,1782,1755,2880,2925,2842,2871,3060,3033,2990,2947,2600,2565,2674,2655,2716,2737,2758,2795,2448,2493,2506,2535,2340,2313,2430,2387,2296,2261,2210,2191,2124,2145,2070,2107,3808,3789,3770,3735,3668,3705,3598,3619,3976,4005,4050,4095,3900,3857,3942,3915,3120,3101,3178,3143,3204,3241,3294,3315,3416,3445,3330,3375,3564,3521,3510,3483,5760,5805,5850,5879,5684,5657,5742,5699,6120,6085,6066,6047,5980,6001,5894,5931,5200,5245,5130,5159,5348,5321,5310,5267,5432,5397,5474,5455,5516,5537,5590,5627,4896,4877,4986,4951,5012,5049,5070,5091,4680,4709,4626,4671,4860,4817,4774,4747,4592,4573,4522,4487,4420,4457,4382,4403,4248,4277,4290,4335,4140,4097,4214,4187,7616,7661,7578,7607,7540,7513,7470,7427,7336,7301,7410,7391,7196,7217,7238,7275,7952,7997,8010,8039,8100,8073,8190,8147,7800,7765,7714,7695,7884,7905,7830,7867,6240,6221,6202,6167,6356,6393,6286,6307,6408,6437,6482,6527,6588,6545,6630,6603,6832,6813,6890,6855,6660,6697,6750,6771,7128,7157,7042,7087,7020,6977,6966,6939},{0,46,92,114,184,150,228,202,368,350,300,258,456,486,404,442,736,718,700,658,600,630,516,554,912,958,972,994,808,774,884,858,1472,1518,1436,1458,1400,1366,1316,1290,1200,1182,1260,1218,1032,1062,1108,1146,1824,1806,1916,1874,1944,1974,1988,2026,1616,1662,1548,1570,1768,1734,1716,1690,2944,2990,3036,3058,2872,2838,2916,2890,2800,2782,2732,2690,2632,2662,2580,2618,2400,2382,2364,2322,2520,2550,2436,2474,2064,2110,2124,2146,2216,2182,2292,2266,3648,3694,3612,3634,3832,3798,3748,3722,3888,3870,3948,3906,3976,4006,4052,4090,3232,3214,3324,3282,3096,3126,3140,3178,3536,3582,3468,3490,3432,3398,3380,3354,5888,5934,5980,6002,6072,6038,6116,6090,5744,5726,5676,5634,5832,5862,5780,5818,5600,5582,5564,5522,5464,5494,5380,5418,5264,5310,5324,5346,5160,5126,5236,5210,4800,4846,4764,4786,4728,4694,4644,4618,5040,5022,5100,5058,4872,4902,4948,4986,4128,4110,4220,4178,4248,4278,4292,4330,4432,4478,4364,4386,4584,4550,4532,4506,7296,7342,7388,7410,7224,7190,7268,7242,7664,7646,7596,7554,7496,7526,7444,7482,7776,7758,7740,7698,7896,7926,7812,7850,7952,7998,8012,8034,8104,8070,8180,8154,6464,6510,6428,6450,6648,6614,6564,6538,6192,6174,6252,6210,6280,6310,6356,6394,7072,7054,7164,7122,6936,6966,6980,7018,6864,6910,6796,6818,6760,6726,6708,6682},{0,47,94,113,188,147,226,205,376,343,294,265,452,491,410,437,752,735,686,641,588,611,530,573,904,935,982,1017,820,795,874,837,1504,1487,1470,1425,1372,1395,1282,1325,1176,1207,1222,1257,1060,1035,1146,1109,1808,1855,1870,1889,1964,1923,2034,2013,1640,1607,1590,1561,1748,1787,1674,1701,3008,3055,2974,2993,2940,2899,2850,2829,2744,2711,2790,2761,2564,2603,2650,2677,2352,2335,2414,2369,2444,2467,2514,2557,2120,2151,2070,2105,2292,2267,2218,2181,3616,3599,3710,3665,3740,3763,3778,3821,3928,3959,3846,3881,4068,4043,4026,3989,3280,3327,3214,3233,3180,3139,3122,3101,3496,3463,3574,3545,3348,3387,3402,3429,6016,6063,6110,6129,5948,5907,5986,5965,5880,5847,5798,5769,5700,5739,5658,5685,5488,5471,5422,5377,5580,5603,5522,5565,5128,5159,5206,5241,5300,5275,5354,5317,4704,4687,4670,4625,4828,4851,4738,4781,4888,4919,4934,4969,5028,5003,5114,5077,4240,4287,4302,4321,4140,4099,4210,4189,4584,4551,4534,4505,4436,4475,4362,4389,7232,7279,7198,7217,7420,7379,7330,7309,7480,7447,7526,7497,7556,7595,7642,7669,7856,7839,7918,7873,7692,7715,7762,7805,8136,8167,8086,8121,8052,8027,7978,7941,6560,6543,6654,6609,6428,6451,6466,6509,6360,6391,6278,6313,6244,6219,6202,6165,6992,7039,6926,6945,7148,7107,7090,7069,6696,6663,6774,6745,6804,6843,6858,6885},{0,48,96,80,192,240,160,144,384,432,480,464,320,368,288,272,768,816,864,848,960,1008,928,912,640,688,736,720,576,624,544,528,1536,1584,1632,1616,1728,1776,1696,1680,1920,1968,2016,2000,1856,1904,1824,1808,1280,1328,1376,1360,1472,1520,1440,1424,1152,1200,1248,1232,1088,1136,1056,1040,3072,3120,3168,3152,3264,3312,3232,3216,3456,3504,3552,3536,3392,3440,3360,3344,3840,3888,3936,3920,4032,4080,4000,3984,3712,3760,3808,3792,3648,3696,3616,3600,2560,2608,2656,2640,2752,2800,2720,2704,2944,2992,3040,3024,2880,2928,2848,2832,2304,2352,2400,2384,2496,2544,2464,2448,2176,2224,2272,2256,2112,2160,2080,2064,6144,6192,6240,6224,6336,6384,6304,6288,6528,6576,6624,6608,6464,6512,6432,6416,6912,6960,7008,6992,7104,7152,7072,7056,6784,6832,6880,6864,6720,6768,6688,6672,7680,7728,7776,7760,7872,7920,7840,7824,8064,8112,8160,8144,8000,8048,7968,7952,7424,7472,7520,7504,7616,7664,7584,7568,7296,7344,7392,7376,7232,7280,7200,7184,5120,5168,5216,5200,5312,5360,5280,5264,5504,5552,5600,5584,5440,5488,5408,5392,5888,5936,5984,5968,6080,6128,6048,6032,5760,5808,5856,5840,5696,5744,5664,5648,4608,4656,4704,4688,4800,4848,4768,4752,4992,5040,5088,5072,4928,4976,4896,4880,4352,4400,4448,4432,4544,4592,4512,4496,4224,4272,4320,4304,4160,4208,4128,4112},{0,49,98,83,196,245,166,151,392,441,490,475,332,381,302,287,784,801,882,835,980,997,950,903,664,681,762,715,604,621,574,527,1568,1553,1602,1651,1764,1749,1670,1719,1960,1945,1994,2043,1900,1885,1806,1855,1328,1281,1362,1379,1524,1477,1430,1447,1208,1161,1242,1259,1148,1101,1054,1071,3136,3185,3106,3091,3204,3253,3302,3287,3528,3577,3498,3483,3340,3389,3438,3423,3920,3937,3890,3843,3988,4005,4086,4039,3800,3817,3770,3723,3612,3629,3710,3663,2656,2641,2562,2611,2724,2709,2758,2807,3048,3033,2954,3003,2860,2845,2894,2943,2416,2369,2322,2339,2484,2437,2518,2535,2296,2249,2202,2219,2108,2061,2142,2159,6272,6321,6370,6355,6212,6261,6182,6167,6408,6457,6506,6491,6604,6653,6574,6559,7056,7073,7154,7107,6996,7013,6966,6919,6680,6697,6778,6731,6876,6893,6846,6799,7840,7825,7874,7923,7780,7765,7686,7735,7976,7961,8010,8059,8172,8157,8078,8127,7600,7553,7634,7651,7540,7493,7446,7463,7224,7177,7258,7275,7420,7373,7326,7343,5312,5361,5282,5267,5124,5173,5222,5207,5448,5497,5418,5403,5516,5565,5614,5599,6096,6113,6066,6019,5908,5925,6006,5959,5720,5737,5690,5643,5788,5805,5886,5839,4832,4817,4738,4787,4644,4629,4678,4727,4968,4953,4874,4923,5036,5021,5070,5119,4592,4545,4498,4515,4404,4357,4438,4455,4216,4169,4122,4139,4284,4237,4318,4335},{0,50,100,86,200,250,172,158,400,418,500,454,344,362,316,270,800,786,836,886,1000,986,908,958,688,642,724,742,632,586,540,558,1600,1650,1572,1558,1672,1722,1772,1758,2000,2018,1972,1926,1816,1834,1916,1870,1376,1362,1284,1334,1448,1434,1484,1534,1264,1218,1172,1190,1080,1034,1116,1134,3200,3250,3300,3286,3144,3194,3116,3102,3344,3362,3444,3398,3544,3562,3516,3470,4000,3986,4036,4086,3944,3930,3852,3902,3632,3586,3668,3686,3832,3786,3740,3758,2752,2802,2724,2710,2568,2618,2668,2654,2896,2914,2868,2822,2968,2986,3068,3022,2528,2514,2436,2486,2344,2330,2380,2430,2160,2114,2068,2086,2232,2186,2268,2286,6400,6450,6500,6486,6600,6650,6572,6558,6288,6306,6388,6342,6232,6250,6204,6158,6688,6674,6724,6774,6888,6874,6796,6846,7088,7042,7124,7142,7032,6986,6940,6958,8000,8050,7972,7958,8072,8122,8172,8158,7888,7906,7860,7814,7704,7722,7804,7758,7264,7250,7172,7222,7336,7322,7372,7422,7664,7618,7572,7590,7480,7434,7516,7534,5504,5554,5604,5590,5448,5498,5420,5406,5136,5154,5236,5190,5336,5354,5308,5262,5792,5778,5828,5878,5736,5722,5644,5694,5936,5890,5972,5990,6136,6090,6044,6062,5056,5106,5028,5014,4872,4922,4972,4958,4688,4706,4660,4614,4760,4778,4860,4814,4320,4306,4228,4278,4136,4122,4172,4222,4464,4418,4372,4390,4536,4490,4572,4590},{0,51,102,85,204,255,170,153,408,427,510,461,340,359,306,257,816,771,854,869,1020,975,922,937,680,667,718,765,612,599,514,561,1632,1619,1542,1589,1708,1695,1738,1785,2040,1995,1950,1965,1844,1799,1874,1889,1360,1379,1334,1285,1436,1455,1530,1481,1224,1275,1198,1181,1028,1079,1122,1105,3264,3315,3238,3221,3084,3135,3178,3161,3416,3435,3390,3341,3476,3495,3570,3521,4080,4035,3990,4005,3900,3855,3930,3945,3688,3675,3598,3645,3748,3735,3778,3825,2720,2707,2758,2805,2668,2655,2570,2617,2872,2827,2910,2925,3060,3015,2962,2977,2448,2467,2550,2501,2396,2415,2362,2313,2056,2107,2158,2141,2244,2295,2210,2193,6528,6579,6630,6613,6476,6527,6442,6425,6168,6187,6270,6221,6356,6375,6322,6273,6832,6787,6870,6885,6780,6735,6682,6697,6952,6939,6990,7037,7140,7127,7042,7089,8160,8147,8070,8117,7980,7967,8010,8057,7800,7755,7710,7725,7860,7815,7890,7905,7376,7395,7350,7301,7196,7215,7290,7241,7496,7547,7470,7453,7556,7607,7650,7633,5440,5491,5414,5397,5516,5567,5610,5593,5336,5355,5310,5261,5140,5159,5234,5185,5744,5699,5654,5669,5820,5775,5850,5865,6120,6107,6030,6077,5924,5911,5954,6001,4896,4883,4934,4981,5100,5087,5002,5049,4792,4747,4830,4845,4724,4679,4626,4641,4112,4131,4214,4165,4316,4335,4282,4233,4488,4539,4590,4573,4420,4471,4386,4369},{0,52,104,92,208,228,184,140,416,404,456,508,368,324,280,300,832,884,808,796,912,932,1016,972,736,724,648,700,560,516,600,620,1664,1716,1768,1756,1616,1636,1592,1548,1824,1812,1864,1916,2032,1988,1944,1964,1472,1524,1448,1436,1296,1316,1400,1356,1120,1108,1032,1084,1200,1156,1240,1260,3328,3380,3432,3420,3536,3556,3512,3468,3232,3220,3272,3324,3184,3140,3096,3116,3648,3700,3624,3612,3728,3748,3832,3788,4064,4052,3976,4028,3888,3844,3928,3948,2944,2996,3048,3036,2896,2916,2872,2828,2592,2580,2632,2684,2800,2756,2712,2732,2240,2292,2216,2204,2064,2084,2168,2124,2400,2388,2312,2364,2480,2436,2520,2540,6656,6708,6760,6748,6864,6884,6840,6796,7072,7060,7112,7164,7024,6980,6936,6956,6464,6516,6440,6428,6544,6564,6648,6604,6368,6356,6280,6332,6192,6148,6232,6252,7296,7348,7400,7388,7248,7268,7224,7180,7456,7444,7496,7548,7664,7620,7576,7596,8128,8180,8104,8092,7952,7972,8056,8012,7776,7764,7688,7740,7856,7812,7896,7916,5888,5940,5992,5980,6096,6116,6072,6028,5792,5780,5832,5884,5744,5700,5656,5676,5184,5236,5160,5148,5264,5284,5368,5324,5600,5588,5512,5564,5424,5380,5464,5484,4480,4532,4584,4572,4432,4452,4408,4364,4128,4116,4168,4220,4336,4292,4248,4268,4800,4852,4776,4764,4624,4644,4728,4684,4960,4948,4872,4924,5040,4996,5080,5100},{0,53,106,95,212,225,190,139,424,413,450,503,380,329,278,291,848,869,826,783,900,945,1006,987,760,717,658,679,556,537,582,627,1696,1685,1738,1791,1652,1601,1566,1579,1800,1853,1890,1879,2012,2025,1974,1923,1520,1477,1434,1455,1316,1297,1358,1403,1112,1133,1074,1031,1164,1209,1254,1235,3392,3445,3370,3359,3476,3489,3582,3531,3304,3293,3202,3255,3132,3081,3158,3171,3600,3621,3706,3663,3780,3825,3758,3739,4024,3981,4050,4071,3948,3929,3846,3891,3040,3029,2954,3007,2868,2817,2910,2923,2632,2685,2594,2583,2716,2729,2806,2755,2224,2181,2266,2287,2148,2129,2062,2107,2328,2349,2418,2375,2508,2553,2470,2451,6784,6837,6890,6879,6740,6753,6718,6667,6952,6941,6978,7031,7164,7113,7062,7075,6608,6629,6586,6543,6404,6449,6510,6491,6264,6221,6162,6183,6316,6297,6342,6387,7200,7189,7242,7295,7412,7361,7326,7339,7560,7613,7650,7639,7516,7529,7478,7427,8048,8005,7962,7983,8100,8081,8142,8187,7896,7917,7858,7815,7692,7737,7782,7763,6080,6133,6058,6047,5908,5921,6014,5963,5736,5725,5634,5687,5820,5769,5846,5859,5264,5285,5370,5327,5188,5233,5166,5147,5432,5389,5458,5479,5612,5593,5510,5555,4448,4437,4362,4415,4532,4481,4574,4587,4296,4349,4258,4247,4124,4137,4214,4163,4656,4613,4698,4719,4836,4817,4750,4795,5016,5037,5106,5063,4940,4985,4902,4883},{0,54,108,90,216,238,180,130,432,390,476,490,360,350,260,306,864,854,780,826,952,910,980,994,720,742,700,650,520,574,612,594,1728,1782,1708,1690,1560,1582,1652,1602,1904,1862,1820,1834,1960,1950,1988,2034,1440,1430,1484,1530,1400,1358,1300,1314,1040,1062,1148,1098,1224,1278,1188,1170,3456,3510,3564,3546,3416,3438,3380,3330,3120,3078,3164,3178,3304,3294,3204,3250,3808,3798,3724,3770,3640,3598,3668,3682,3920,3942,3900,3850,3976,4030,4068,4050,2880,2934,2860,2842,2968,2990,3060,3010,2800,2758,2716,2730,2600,2590,2628,2674,2080,2070,2124,2170,2296,2254,2196,2210,2448,2470,2556,2506,2376,2430,2340,2322,6912,6966,7020,7002,7128,7150,7092,7042,6832,6790,6876,6890,6760,6750,6660,6706,6240,6230,6156,6202,6328,6286,6356,6370,6608,6630,6588,6538,6408,6462,6500,6482,7616,7670,7596,7578,7448,7470,7540,7490,7280,7238,7196,7210,7336,7326,7364,7410,7840,7830,7884,7930,7800,7758,7700,7714,7952,7974,8060,8010,8136,8190,8100,8082,5760,5814,5868,5850,5720,5742,5684,5634,5936,5894,5980,5994,6120,6110,6020,6066,5600,5590,5516,5562,5432,5390,5460,5474,5200,5222,5180,5130,5256,5310,5348,5330,4160,4214,4140,4122,4248,4270,4340,4290,4592,4550,4508,4522,4392,4382,4420,4466,4896,4886,4940,4986,5112,5070,5012,5026,4752,4774,4860,4810,4680,4734,4644,4626},{0,55,110,89,220,235,178,133,440,399,470,481,356,339,266,317,880,839,798,809,940,923,962,1013,712,767,678,657,532,547,634,589,1760,1751,1678,1721,1596,1547,1618,1637,1880,1903,1846,1793,1924,1971,2026,2013,1424,1447,1534,1481,1356,1403,1314,1301,1064,1055,1094,1137,1268,1219,1178,1197,3520,3575,3502,3481,3356,3371,3442,3397,3192,3151,3094,3105,3236,3219,3274,3325,3760,3719,3806,3817,3692,3675,3586,3637,3848,3903,3942,3921,4052,4067,4026,3981,2848,2839,2894,2937,3068,3019,2962,2981,2712,2735,2806,2753,2628,2675,2602,2589,2128,2151,2110,2057,2188,2235,2274,2261,2536,2527,2438,2481,2356,2307,2394,2413,7040,7095,7150,7129,7004,7019,6962,6917,6712,6671,6742,6753,6884,6867,6794,6845,6384,6343,6302,6313,6188,6171,6210,6261,6472,6527,6438,6417,6548,6563,6650,6605,7520,7511,7438,7481,7612,7563,7634,7653,7384,7407,7350,7297,7172,7219,7274,7261,7696,7719,7806,7753,7884,7931,7842,7829,8104,8095,8134,8177,8052,8003,7962,7981,5696,5751,5678,5657,5788,5803,5874,5829,6136,6095,6038,6049,5924,5907,5962,6013,5424,5383,5470,5481,5612,5595,5506,5557,5256,5311,5350,5329,5204,5219,5178,5133,4256,4247,4302,4345,4220,4171,4114,4133,4376,4399,4470,4417,4548,4595,4522,4509,5072,5095,5054,5001,4876,4923,4962,4949,4712,4703,4614,4657,4788,4739,4826,4845},{0,56,112,72,224,216,144,168,448,504,432,392,288,280,336,360,896,952,1008,968,864,856,784,808,576,632,560,520,672,664,720,744,1792,1848,1904,1864,2016,2008,1936,1960,1728,1784,1712,1672,1568,1560,1616,1640,1152,1208,1264,1224,1120,1112,1040,1064,1344,1400,1328,1288,1440,1432,1488,1512,3584,3640,3696,3656,3808,3800,3728,3752,4032,4088,4016,3976,3872,3864,3920,3944,3456,3512,3568,3528,3424,3416,3344,3368,3136,3192,3120,3080,3232,3224,3280,3304,2304,2360,2416,2376,2528,2520,2448,2472,2240,2296,2224,2184,2080,2072,2128,2152,2688,2744,2800,2760,2656,2648,2576,2600,2880,2936,2864,2824,2976,2968,3024,3048,7168,7224,7280,7240,7392,7384,7312,7336,7616,7672,7600,7560,7456,7448,7504,7528,8064,8120,8176,8136,8032,8024,7952,7976,7744,7800,7728,7688,7840,7832,7888,7912,6912,6968,7024,6984,7136,7128,7056,7080,6848,6904,6832,6792,6688,6680,6736,6760,6272,6328,6384,6344,6240,6232,6160,6184,6464,6520,6448,6408,6560,6552,6608,6632,4608,4664,4720,4680,4832,4824,4752,4776,5056,5112,5040,5000,4896,4888,4944,4968,4480,4536,4592,4552,4448,4440,4368,4392,4160,4216,4144,4104,4256,4248,4304,4328,5376,5432,5488,5448,5600,5592,5520,5544,5312,5368,5296,5256,5152,5144,5200,5224,5760,5816,5872,5832,5728,5720,5648,5672,5952,6008,5936,5896,6048,6040,6096,6120},{0,57,114,75,228,221,150,175,456,497,442,387,300,277,350,359,912,937,994,987,884,845,774,831,600,609,554,531,700,645,718,759,1824,1817,1874,1899,1988,2045,1974,1935,1768,1745,1690,1699,1548,1589,1662,1607,1200,1161,1218,1275,1108,1133,1062,1055,1400,1345,1290,1331,1436,1445,1518,1495,3648,3705,3634,3595,3748,3741,3798,3823,3976,4017,4090,4035,3948,3925,3870,3879,3536,3561,3490,3483,3380,3341,3398,3455,3096,3105,3178,3155,3324,3269,3214,3255,2400,2393,2322,2347,2436,2493,2550,2511,2216,2193,2266,2275,2124,2165,2110,2055,2800,2761,2690,2747,2580,2605,2662,2655,2872,2817,2890,2931,3036,3045,2990,2967,7296,7353,7410,7371,7268,7261,7190,7215,7496,7537,7482,7427,7596,7573,7646,7655,7952,7977,8034,8027,8180,8141,8070,8127,7896,7905,7850,7827,7740,7685,7758,7799,7072,7065,7122,7147,6980,7037,6966,6927,6760,6737,6682,6691,6796,6837,6910,6855,6192,6153,6210,6267,6356,6381,6310,6303,6648,6593,6538,6579,6428,6437,6510,6487,4800,4857,4786,4747,4644,4637,4694,4719,4872,4913,4986,4931,5100,5077,5022,5031,4432,4457,4386,4379,4532,4493,4550,4607,4248,4257,4330,4307,4220,4165,4110,4151,5600,5593,5522,5547,5380,5437,5494,5455,5160,5137,5210,5219,5324,5365,5310,5255,5744,5705,5634,5691,5780,5805,5862,5855,6072,6017,6090,6131,5980,5989,5934,5911},{0,58,116,78,232,210,156,166,464,490,420,414,312,258,332,374,928,922,980,1006,840,882,828,774,624,586,516,574,664,674,748,726,1856,1914,1844,1806,1960,1938,2012,2022,1680,1706,1764,1758,1656,1602,1548,1590,1248,1242,1172,1198,1032,1074,1148,1094,1328,1290,1348,1406,1496,1506,1452,1430,3712,3770,3828,3790,3688,3666,3612,3622,3920,3946,3876,3870,4024,3970,4044,4086,3360,3354,3412,3438,3528,3570,3516,3462,3312,3274,3204,3262,3096,3106,3180,3158,2496,2554,2484,2446,2344,2322,2396,2406,2064,2090,2148,2142,2296,2242,2188,2230,2656,2650,2580,2606,2696,2738,2812,2758,2992,2954,3012,3070,2904,2914,2860,2838,7424,7482,7540,7502,7656,7634,7580,7590,7376,7402,7332,7326,7224,7170,7244,7286,7840,7834,7892,7918,7752,7794,7740,7686,8048,8010,7940,7998,8088,8098,8172,8150,6720,6778,6708,6670,6824,6802,6876,6886,7056,7082,7140,7134,7032,6978,6924,6966,6624,6618,6548,6574,6408,6450,6524,6470,6192,6154,6212,6270,6360,6370,6316,6294,4992,5050,5108,5070,4968,4946,4892,4902,4688,4714,4644,4638,4792,4738,4812,4854,4128,4122,4180,4206,4296,4338,4284,4230,4592,4554,4484,4542,4376,4386,4460,4438,5312,5370,5300,5262,5160,5138,5212,5222,5392,5418,5476,5470,5624,5570,5516,5558,5984,5978,5908,5934,6024,6066,6140,6086,5808,5770,5828,5886,5720,5730,5676,5654},{0,59,118,77,236,215,154,161,472,483,430,405,308,271,322,377,944,907,966,1021,860,871,810,785,616,595,542,549,644,703,754,713,1888,1883,1814,1837,1932,1975,2042,1985,1720,1667,1742,1781,1620,1647,1570,1561,1232,1259,1190,1181,1084,1031,1098,1137,1288,1331,1406,1349,1508,1503,1426,1449,3776,3835,3766,3725,3628,3607,3674,3681,3864,3875,3950,3925,4084,4047,3970,4025,3440,3403,3334,3389,3484,3495,3562,3537,3240,3219,3294,3301,3140,3199,3122,3081,2464,2459,2518,2541,2380,2423,2362,2305,2168,2115,2062,2101,2196,2223,2274,2265,2576,2603,2662,2653,2812,2759,2698,2737,3016,3059,3006,2949,2852,2847,2898,2921,7552,7611,7670,7629,7532,7511,7450,7457,7256,7267,7214,7189,7348,7311,7362,7417,7728,7691,7750,7805,7900,7911,7850,7825,8168,8147,8094,8101,7940,7999,8050,8009,6880,6875,6806,6829,6668,6711,6778,6721,6968,6915,6990,7029,7124,7151,7074,7065,6480,6507,6438,6429,6588,6535,6602,6641,6280,6323,6398,6341,6244,6239,6162,6185,4928,4987,4918,4877,5036,5015,5082,5089,4760,4771,4846,4821,4724,4687,4610,4665,4336,4299,4230,4285,4124,4135,4202,4177,4392,4371,4446,4453,4548,4607,4530,4489,5152,5147,5206,5229,5324,5367,5306,5249,5624,5571,5518,5557,5396,5423,5474,5465,6032,6059,6118,6109,6012,5959,5898,5937,5704,5747,5694,5637,5796,5791,5842,5865},{0,60,120,68,240,204,136,180,480,476,408,420,272,300,360,340,960,1020,952,900,816,780,840,884,544,540,600,612,720,748,680,660,1920,1980,2040,1988,1904,1868,1800,1844,1632,1628,1560,1572,1680,1708,1768,1748,1088,1148,1080,1028,1200,1164,1224,1268,1440,1436,1496,1508,1360,1388,1320,1300,3840,3900,3960,3908,4080,4044,3976,4020,3808,3804,3736,3748,3600,3628,3688,3668,3264,3324,3256,3204,3120,3084,3144,3188,3360,3356,3416,3428,3536,3564,3496,3476,2176,2236,2296,2244,2160,2124,2056,2100,2400,2396,2328,2340,2448,2476,2536,2516,2880,2940,2872,2820,2992,2956,3016,3060,2720,2716,2776,2788,2640,2668,2600,2580,7680,7740,7800,7748,7920,7884,7816,7860,8160,8156,8088,8100,7952,7980,8040,8020,7616,7676,7608,7556,7472,7436,7496,7540,7200,7196,7256,7268,7376,7404,7336,7316,6528,6588,6648,6596,6512,6476,6408,6452,6240,6236,6168,6180,6288,6316,6376,6356,6720,6780,6712,6660,6832,6796,6856,6900,7072,7068,7128,7140,6992,7020,6952,6932,4352,4412,4472,4420,4592,4556,4488,4532,4320,4316,4248,4260,4112,4140,4200,4180,4800,4860,4792,4740,4656,4620,4680,4724,4896,4892,4952,4964,5072,5100,5032,5012,5760,5820,5880,5828,5744,5708,5640,5684,5984,5980,5912,5924,6032,6060,6120,6100,5440,5500,5432,5380,5552,5516,5576,5620,5280,5276,5336,5348,5200,5228,5160,5140},{0,61,122,71,244,201,142,179,488,469,402,431,284,289,358,347,976,1005,938,919,804,793,862,867,568,517,578,639,716,753,694,651,1952,1949,2010,2023,1876,1897,1838,1811,1608,1653,1586,1551,1724,1665,1734,1787,1136,1101,1034,1079,1156,1209,1278,1219,1432,1445,1506,1503,1388,1361,1302,1323,3904,3965,3898,3847,4020,3977,4046,4083,3752,3733,3794,3823,3676,3681,3622,3611,3216,3245,3306,3287,3172,3161,3102,3107,3448,3397,3330,3391,3468,3505,3574,3531,2272,2269,2202,2215,2068,2089,2158,2131,2312,2357,2418,2383,2556,2497,2438,2491,2864,2829,2890,2935,3012,3065,3006,2947,2776,2789,2722,2719,2604,2577,2646,2667,7808,7869,7930,7879,7796,7753,7694,7731,8040,8021,7954,7983,8092,8097,8166,8155,7504,7533,7466,7447,7588,7577,7646,7651,7352,7301,7362,7423,7244,7281,7222,7179,6432,6429,6490,6503,6612,6633,6574,6547,6344,6389,6322,6287,6204,6145,6214,6267,6896,6861,6794,6839,6660,6713,6782,6723,6936,6949,7010,7007,7148,7121,7062,7083,4544,4605,4538,4487,4404,4361,4430,4467,4136,4117,4178,4207,4316,4321,4262,4251,4624,4653,4714,4695,4836,4825,4766,4771,5112,5061,4994,5055,4876,4913,4982,4939,5728,5725,5658,5671,5780,5801,5870,5843,6024,6069,6130,6095,6012,5953,5894,5947,5552,5517,5578,5623,5444,5497,5438,5379,5208,5221,5154,5151,5292,5265,5334,5355},{0,62,124,66,248,198,132,186,496,462,396,434,264,310,372,330,992,990,924,930,792,806,868,858,528,558,620,594,744,726,660,682,1984,2046,1980,1922,1848,1798,1860,1914,1584,1550,1612,1650,1736,1782,1716,1674,1056,1054,1116,1122,1240,1254,1188,1178,1488,1518,1452,1426,1320,1302,1364,1386,3968,4030,4092,4034,3960,3910,3844,3898,3696,3662,3596,3634,3720,3766,3828,3786,3168,3166,3100,3106,3224,3238,3300,3290,3472,3502,3564,3538,3432,3414,3348,3370,2112,2174,2108,2050,2232,2182,2244,2298,2480,2446,2508,2546,2376,2422,2356,2314,2976,2974,3036,3042,2904,2918,2852,2842,2640,2670,2604,2578,2728,2710,2772,2794,7936,7998,8060,8002,8184,8134,8068,8122,7920,7886,7820,7858,7688,7734,7796,7754,7392,7390,7324,7330,7192,7206,7268,7258,7440,7470,7532,7506,7656,7638,7572,7594,6336,6398,6332,6274,6200,6150,6212,6266,6448,6414,6476,6514,6600,6646,6580,6538,6944,6942,7004,7010,7128,7142,7076,7066,6864,6894,6828,6802,6696,6678,6740,6762,4224,4286,4348,4290,4216,4166,4100,4154,4464,4430,4364,4402,4488,4534,4596,4554,4960,4958,4892,4898,5016,5030,5092,5082,4752,4782,4844,4818,4712,4694,4628,4650,5952,6014,5948,5890,6072,6022,6084,6138,5808,5774,5836,5874,5704,5750,5684,5642,5280,5278,5340,5346,5208,5222,5156,5146,5456,5486,5420,5394,5544,5526,5588,5610},{0,63,126,65,252,195,130,189,504,455,390,441,260,315,378,325,1008,975,910,945,780,819,882,845,520,567,630,585,756,715,650,693,2016,2015,1950,1953,1820,1827,1890,1885,1560,1575,1638,1625,1764,1755,1690,1701,1040,1071,1134,1105,1260,1235,1170,1197,1512,1495,1430,1449,1300,1323,1386,1365,4032,4095,4030,3969,3900,3843,3906,3965,3640,3591,3654,3705,3780,3835,3770,3717,3120,3087,3150,3185,3276,3315,3250,3213,3528,3575,3510,3465,3380,3339,3402,3445,2080,2079,2142,2145,2268,2275,2210,2205,2520,2535,2470,2457,2340,2331,2394,2405,3024,3055,2990,2961,2860,2835,2898,2925,2600,2583,2646,2665,2772,2795,2730,2709,8064,8127,8190,8129,8060,8003,7938,7997,7800,7751,7686,7737,7812,7867,7930,7877,7280,7247,7182,7217,7308,7347,7410,7373,7560,7607,7670,7625,7540,7499,7434,7477,6240,6239,6174,6177,6300,6307,6370,6365,6552,6567,6630,6617,6500,6491,6426,6437,7056,7087,7150,7121,7020,6995,6930,6957,6760,6743,6678,6697,6804,6827,6890,6869,4160,4223,4158,4097,4284,4227,4290,4349,4536,4487,4550,4601,4420,4475,4410,4357,5040,5007,5070,5105,4940,4979,4914,4877,4680,4727,4662,4617,4788,4747,4810,4853,6048,6047,6110,6113,5980,5987,5922,5917,5720,5735,5670,5657,5796,5787,5850,5861,5200,5231,5166,5137,5292,5267,5330,5357,5544,5527,5590,5609,5460,5483,5418,5397},{0,64,128,192,256,320,384,448,512,576,640,704,768,832,896,960,1024,1088,1152,1216,1280,1344,1408,1472,1536,1600,1664,1728,1792,1856,1920,1984,2048,2112,2176,2240,2304,2368,2432,2496,2560,2624,2688,2752,2816,2880,2944,3008,3072,3136,3200,3264,3328,3392,3456,3520,3584,3648,3712,3776,3840,3904,3968,4032,4096,4160,4224,4288,4352,4416,4480,4544,4608,4672,4736,4800,4864,4928,4992,5056,5120,5184,5248,5312,5376,5440,5504,5568,5632,5696,5760,5824,5888,5952,6016,6080,6144,6208,6272,6336,6400,6464,6528,6592,6656,6720,6784,6848,6912,6976,7040,7104,7168,7232,7296,7360,7424,7488,7552,7616,7680,7744,7808,7872,7936,8000,8064,8128,8192,8256,8320,8384,8448,8512,8576,8640,8704,8768,8832,8896,8960,9024,9088,9152,9216,9280,9344,9408,9472,9536,9600,9664,9728,9792,9856,9920,9984,10048,10112,10176,10240,10304,10368,10432,10496,10560,10624,10688,10752,10816,10880,10944,11008,11072,11136,11200,11264,11328,11392,11456,11520,11584,11648,11712,11776,11840,11904,11968,12032,12096,12160,12224,12288,12352,12416,12480,12544,12608,12672,12736,12800,12864,12928,12992,13056,13120,13184,13248,13312,13376,13440,13504,13568,13632,13696,13760,13824,13888,13952,14016,14080,14144,14208,14272,14336,14400,14464,14528,14592,14656,14720,14784,14848,14912,14976,15040,15104,15168,15232,15296,15360,15424,15488,15552,15616,15680,15744,15808,15872,15936,16000,16064,16128,16192,16256,16320},{0,65,130,195,260,325,390,455,520,585,650,715,780,845,910,975,1040,1105,1170,1235,1300,1365,1430,1495,1560,1625,1690,1755,1820,1885,1950,2015,2080,2145,2210,2275,2340,2405,2470,2535,2600,2665,2730,2795,2860,2925,2990,3055,3120,3185,3250,3315,3380,3445,3510,3575,3640,3705,3770,3835,3900,3965,4030,4095,4160,4097,4290,4227,4420,4357,4550,4487,4680,4617,4810,4747,4940,4877,5070,5007,5200,5137,5330,5267,5460,5397,5590,5527,5720,5657,5850,5787,5980,5917,6110,6047,6240,6177,6370,6307,6500,6437,6630,6567,6760,6697,6890,6827,7020,6957,7150,7087,7280,7217,7410,7347,7540,7477,7670,7607,7800,7737,7930,7867,8060,7997,8190,8127,8320,8385,8194,8259,8580,8645,8454,8519,8840,8905,8714,8779,9100,9165,8974,9039,9360,9425,9234,9299,9620,9685,9494,9559,9880,9945,9754,9819,10140,10205,10014,10079,10400,10465,10274,10339,10660,10725,10534,10599,10920,10985,10794,10859,11180,11245,11054,11119,11440,11505,11314,11379,11700,11765,11574,11639,11960,12025,11834,11899,12220,12285,12094,12159,12480,12417,12354,12291,12740,12677,12614,12551,13000,12937,12874,12811,13260,13197,13134,13071,13520,13457,13394,13331,13780,13717,13654,13591,14040,13977,13914,13851,14300,14237,14174,14111,14560,14497,14434,14371,14820,14757,14694,14631,15080,15017,14954,14891,15340,15277,15214,15151,15600,15537,15474,15411,15860,15797,15734,15671,16120,16057,15994,15931,16380,16317,16254,16191},{0,66,132,198,264,330,396,462,528,594,660,726,792,858,924,990,1056,1122,1188,1254,1320,1386,1452,1518,1584,1650,1716,1782,1848,1914,1980,2046,2112,2050,2244,2182,2376,2314,2508,2446,2640,2578,2772,2710,2904,2842,3036,2974,3168,3106,3300,3238,3432,3370,3564,3502,3696,3634,3828,3766,3960,3898,4092,4030,4224,4290,4100,4166,4488,4554,4364,4430,4752,4818,4628,4694,5016,5082,4892,4958,5280,5346,5156,5222,5544,5610,5420,5486,5808,5874,5684,5750,6072,6138,5948,6014,6336,6274,6212,6150,6600,6538,6476,6414,6864,6802,6740,6678,7128,7066,7004,6942,7392,7330,7268,7206,7656,7594,7532,7470,7920,7858,7796,7734,8184,8122,8060,7998,8448,8514,8580,8646,8200,8266,8332,8398,8976,9042,9108,9174,8728,8794,8860,8926,9504,9570,9636,9702,9256,9322,9388,9454,10032,10098,10164,10230,9784,9850,9916,9982,10560,10498,10692,10630,10312,10250,10444,10382,11088,11026,11220,11158,10840,10778,10972,10910,11616,11554,11748,11686,11368,11306,11500,11438,12144,12082,12276,12214,11896,11834,12028,11966,12672,12738,12548,12614,12424,12490,12300,12366,13200,13266,13076,13142,12952,13018,12828,12894,13728,13794,13604,13670,13480,13546,13356,13422,14256,14322,14132,14198,14008,14074,13884,13950,14784,14722,14660,14598,14536,14474,14412,14350,15312,15250,15188,15126,15064,15002,14940,14878,15840,15778,15716,15654,15592,15530,15468,15406,16368,16306,16244,16182,16120,16058,15996,15934},{0,67,134,197,268,335,394,457,536,603,670,733,788,855,914,977,1072,1139,1206,1269,1340,1407,1466,1529,1576,1643,1710,1773,1828,1895,1954,2017,2144,2083,2278,2213,2412,2351,2538,2473,2680,2619,2814,2749,2932,2871,3058,2993,3152,3091,3286,3221,3420,3359,3546,3481,3656,3595,3790,3725,3908,3847,4034,3969,4288,4227,4166,4101,4556,4495,4426,4361,4824,4763,4702,4637,5076,5015,4946,4881,5360,5299,5238,5173,5628,5567,5498,5433,5864,5803,5742,5677,6116,6055,5986,5921,6304,6371,6182,6245,6572,6639,6442,6505,6840,6907,6718,6781,7092,7159,6962,7025,7312,7379,7190,7253,7580,7647,7450,7513,7816,7883,7694,7757,8068,8135,7938,8001,8576,8643,8454,8517,8332,8399,8202,8265,9112,9179,8990,9053,8852,8919,8722,8785,9648,9715,9526,9589,9404,9471,9274,9337,10152,10219,10030,10093,9892,9959,9762,9825,10720,10659,10598,10533,10476,10415,10346,10281,11256,11195,11134,11069,10996,10935,10866,10801,11728,11667,11606,11541,11484,11423,11354,11289,12232,12171,12110,12045,11972,11911,11842,11777,12608,12547,12742,12677,12364,12303,12490,12425,13144,13083,13278,13213,12884,12823,13010,12945,13680,13619,13814,13749,13436,13375,13562,13497,14184,14123,14318,14253,13924,13863,14050,13985,14624,14691,14758,14821,14380,14447,14506,14569,15160,15227,15294,15357,14900,14967,15026,15089,15632,15699,15766,15829,15388,15455,15514,15577,16136,16203,16270,16333,15876,15943,16002,16065},{0,68,136,204,272,340,408,476,544,612,680,748,816,884,952,1020,1088,1028,1224,1164,1360,1300,1496,1436,1632,1572,1768,1708,1904,1844,2040,1980,2176,2244,2056,2124,2448,2516,2328,2396,2720,2788,2600,2668,2992,3060,2872,2940,3264,3204,3144,3084,3536,3476,3416,3356,3808,3748,3688,3628,4080,4020,3960,3900,4352,4420,4488,4556,4112,4180,4248,4316,4896,4964,5032,5100,4656,4724,4792,4860,5440,5380,5576,5516,5200,5140,5336,5276,5984,5924,6120,6060,5744,5684,5880,5820,6528,6596,6408,6476,6288,6356,6168,6236,7072,7140,6952,7020,6832,6900,6712,6780,7616,7556,7496,7436,7376,7316,7256,7196,8160,8100,8040,7980,7920,7860,7800,7740,8704,8772,8840,8908,8976,9044,9112,9180,8224,8292,8360,8428,8496,8564,8632,8700,9792,9732,9928,9868,10064,10004,10200,10140,9312,9252,9448,9388,9584,9524,9720,9660,10880,10948,10760,10828,11152,11220,11032,11100,10400,10468,10280,10348,10672,10740,10552,10620,11968,11908,11848,11788,12240,12180,12120,12060,11488,11428,11368,11308,11760,11700,11640,11580,13056,13124,13192,13260,12816,12884,12952,13020,12576,12644,12712,12780,12336,12404,12472,12540,14144,14084,14280,14220,13904,13844,14040,13980,13664,13604,13800,13740,13424,13364,13560,13500,15232,15300,15112,15180,14992,15060,14872,14940,14752,14820,14632,14700,14512,14580,14392,14460,16320,16260,16200,16140,16080,16020,15960,15900,15840,15780,15720,15660,15600,15540,15480,15420},{0,69,138,207,276,337,414,475,552,621,674,743,828,889,950,1011,1104,1045,1242,1183,1348,1281,1486,1419,1656,1597,1778,1719,1900,1833,2022,1955,2208,2277,2090,2159,2484,2545,2366,2427,2696,2765,2562,2631,2972,3033,2838,2899,3312,3253,3194,3135,3556,3489,3438,3371,3800,3741,3666,3607,4044,3977,3910,3843,4416,4357,4554,4495,4180,4113,4318,4251,4968,4909,5090,5031,4732,4665,4854,4787,5392,5461,5530,5599,5124,5185,5262,5323,5944,6013,6066,6135,5676,5737,5798,5859,6624,6565,6506,6447,6388,6321,6270,6203,7112,7053,6978,6919,6876,6809,6742,6675,7600,7669,7482,7551,7332,7393,7214,7275,8088,8157,7954,8023,7820,7881,7686,7747,8832,8901,8714,8783,9108,9169,8990,9051,8360,8429,8226,8295,8636,8697,8502,8563,9936,9877,9818,9759,10180,10113,10062,9995,9464,9405,9330,9271,9708,9641,9574,9507,10784,10853,10922,10991,11060,11121,11198,11259,10248,10317,10370,10439,10524,10585,10646,10707,11888,11829,12026,11967,12132,12065,12270,12203,11352,11293,11474,11415,11596,11529,11718,11651,13248,13189,13130,13071,13012,12945,12894,12827,12776,12717,12642,12583,12540,12473,12406,12339,14224,14293,14106,14175,13956,14017,13838,13899,13752,13821,13618,13687,13484,13545,13350,13411,15200,15141,15338,15279,14964,14897,15102,15035,14664,14605,14786,14727,14428,14361,14550,14483,16176,16245,16314,16383,15908,15969,16046,16107,15640,15709,15762,15831,15372,15433,15494,15555},{0,70,140,202,280,350,404,466,560,630,700,762,808,878,932,994,1120,1062,1260,1194,1400,1342,1524,1458,1616,1558,1756,1690,1864,1806,1988,1922,2240,2182,2124,2058,2520,2462,2388,2322,2800,2742,2684,2618,3048,2990,2916,2850,3232,3302,3116,3178,3512,3582,3380,3442,3728,3798,3612,3674,3976,4046,3844,3906,4480,4550,4364,4426,4248,4318,4116,4178,5040,5110,4924,4986,4776,4846,4644,4706,5600,5542,5484,5418,5368,5310,5236,5170,6096,6038,5980,5914,5832,5774,5700,5634,6464,6406,6604,6538,6232,6174,6356,6290,7024,6966,7164,7098,6760,6702,6884,6818,7456,7526,7596,7658,7224,7294,7348,7410,7952,8022,8092,8154,7688,7758,7812,7874,8960,9030,9100,9162,8728,8798,8852,8914,8496,8566,8636,8698,8232,8302,8356,8418,10080,10022,10220,10154,9848,9790,9972,9906,9552,9494,9692,9626,9288,9230,9412,9346,11200,11142,11084,11018,10968,10910,10836,10770,10736,10678,10620,10554,10472,10414,10340,10274,12192,12262,12076,12138,11960,12030,11828,11890,11664,11734,11548,11610,11400,11470,11268,11330,12928,12998,12812,12874,13208,13278,13076,13138,12464,12534,12348,12410,12712,12782,12580,12642,14048,13990,13932,13866,14328,14270,14196,14130,13520,13462,13404,13338,13768,13710,13636,13570,14912,14854,15052,14986,15192,15134,15316,15250,14448,14390,14588,14522,14696,14638,14820,14754,15904,15974,16044,16106,16184,16254,16308,16370,15376,15446,15516,15578,15624,15694,15748,15810},{0,71,142,201,284,347,402,469,568,639,694,753,804,867,938,1005,1136,1079,1278,1209,1388,1323,1506,1445,1608,1551,1734,1665,1876,1811,2010,1949,2272,2215,2158,2089,2556,2491,2418,2357,2776,2719,2646,2577,3012,2947,2890,2829,3216,3287,3102,3161,3468,3531,3330,3397,3752,3823,3622,3681,4020,4083,3898,3965,4544,4487,4430,4361,4316,4251,4178,4117,5112,5055,4982,4913,4836,4771,4714,4653,5552,5623,5438,5497,5292,5355,5154,5221,6024,6095,5894,5953,5780,5843,5658,5725,6432,6503,6574,6633,6204,6267,6322,6389,6936,7007,7062,7121,6660,6723,6794,6861,7504,7447,7646,7577,7244,7179,7362,7301,8040,7983,8166,8097,7796,7731,7930,7869,9088,9159,8974,9033,8860,8923,8722,8789,8632,8703,8502,8561,8356,8419,8234,8301,10224,10167,10110,10041,9964,9899,9826,9765,9672,9615,9542,9473,9428,9363,9306,9245,11104,11047,11246,11177,10876,10811,10994,10933,10584,10527,10710,10641,10308,10243,10442,10381,12048,12119,12190,12249,11788,11851,11906,11973,11560,11631,11686,11745,11316,11379,11450,11517,12864,12807,13006,12937,13148,13083,13266,13205,12408,12351,12534,12465,12644,12579,12778,12717,13872,13943,14014,14073,14124,14187,14242,14309,13320,13391,13446,13505,13588,13651,13722,13789,15008,15079,14894,14953,15292,15355,15154,15221,14488,14559,14358,14417,14724,14787,14602,14669,16080,16023,15966,15897,16332,16267,16194,16133,15592,15535,15462,15393,15860,15795,15738,15677},{0,72,144,216,288,360,432,504,576,520,720,664,864,808,1008,952,1152,1224,1040,1112,1440,1512,1328,1400,1728,1672,1616,1560,2016,1960,1904,1848,2304,2376,2448,2520,2080,2152,2224,2296,2880,2824,3024,2968,2656,2600,2800,2744,3456,3528,3344,3416,3232,3304,3120,3192,4032,3976,3920,3864,3808,3752,3696,3640,4608,4680,4752,4824,4896,4968,5040,5112,4160,4104,4304,4248,4448,4392,4592,4536,5760,5832,5648,5720,6048,6120,5936,6008,5312,5256,5200,5144,5600,5544,5488,5432,6912,6984,7056,7128,6688,6760,6832,6904,6464,6408,6608,6552,6240,6184,6384,6328,8064,8136,7952,8024,7840,7912,7728,7800,7616,7560,7504,7448,7392,7336,7280,7224,9216,9288,9360,9432,9504,9576,9648,9720,9792,9736,9936,9880,10080,10024,10224,10168,8320,8392,8208,8280,8608,8680,8496,8568,8896,8840,8784,8728,9184,9128,9072,9016,11520,11592,11664,11736,11296,11368,11440,11512,12096,12040,12240,12184,11872,11816,12016,11960,10624,10696,10512,10584,10400,10472,10288,10360,11200,11144,11088,11032,10976,10920,10864,10808,13824,13896,13968,14040,14112,14184,14256,14328,13376,13320,13520,13464,13664,13608,13808,13752,12928,13000,12816,12888,13216,13288,13104,13176,12480,12424,12368,12312,12768,12712,12656,12600,16128,16200,16272,16344,15904,15976,16048,16120,15680,15624,15824,15768,15456,15400,15600,15544,15232,15304,15120,15192,15008,15080,14896,14968,14784,14728,14672,14616,14560,14504,14448,14392},{0,73,146,219,292,365,438,511,584,513,730,659,876,805,1022,951,1168,1241,1026,1099,1460,1533,1318,1391,1752,1681,1610,1539,2044,1973,1902,1831,2336,2409,2482,2555,2052,2125,2198,2271,2920,2849,3066,2995,2636,2565,2782,2711,3504,3577,3362,3435,3220,3293,3078,3151,4088,4017,3946,3875,3804,3733,3662,3591,4672,4617,4818,4763,4964,4909,5110,5055,4104,4161,4250,4307,4396,4453,4542,4599,5840,5785,5698,5643,6132,6077,5990,5935,5272,5329,5130,5187,5564,5621,5422,5479,7008,6953,7154,7099,6724,6669,6870,6815,6440,6497,6586,6643,6156,6213,6302,6359,8176,8121,8034,7979,7892,7837,7750,7695,7608,7665,7466,7523,7324,7381,7182,7239,9344,9417,9234,9307,9636,9709,9526,9599,9928,9857,9818,9747,10220,10149,10110,10039,8208,8281,8322,8395,8500,8573,8614,8687,8792,8721,8906,8835,9084,9013,9198,9127,11680,11753,11570,11643,11396,11469,11286,11359,12264,12193,12154,12083,11980,11909,11870,11799,10544,10617,10658,10731,10260,10333,10374,10447,11128,11057,11242,11171,10844,10773,10958,10887,14016,13961,13906,13851,14308,14253,14198,14143,13448,13505,13338,13395,13740,13797,13630,13687,12880,12825,12994,12939,13172,13117,13286,13231,12312,12369,12426,12483,12604,12661,12718,12775,16352,16297,16242,16187,16068,16013,15958,15903,15784,15841,15674,15731,15500,15557,15390,15447,15216,15161,15330,15275,14932,14877,15046,14991,14648,14705,14762,14819,14364,14421,14478,14535},{0,74,148,222,296,354,444,502,592,538,708,654,888,818,1004,934,1184,1258,1076,1150,1416,1474,1308,1366,1776,1722,1636,1582,2008,1938,1868,1798,2368,2314,2516,2462,2152,2082,2300,2230,2832,2906,2948,3022,2616,2674,2732,2790,3552,3498,3444,3390,3272,3202,3164,3094,4016,4090,3876,3950,3736,3794,3596,3654,4736,4810,4628,4702,5032,5090,4924,4982,4304,4250,4164,4110,4600,4530,4460,4390,5664,5738,5812,5886,5896,5954,6044,6102,5232,5178,5348,5294,5464,5394,5580,5510,7104,7050,6996,6942,6888,6818,6780,6710,6544,6618,6404,6478,6328,6386,6188,6246,8032,7978,8180,8126,7752,7682,7900,7830,7472,7546,7588,7662,7192,7250,7308,7366,9472,9546,9620,9694,9256,9314,9404,9462,10064,10010,10180,10126,9848,9778,9964,9894,8608,8682,8500,8574,8328,8386,8220,8278,9200,9146,9060,9006,8920,8850,8780,8710,11328,11274,11476,11422,11624,11554,11772,11702,11792,11866,11908,11982,12088,12146,12204,12262,10464,10410,10356,10302,10696,10626,10588,10518,10928,11002,10788,10862,11160,11218,11020,11078,14208,14282,14100,14174,13992,14050,13884,13942,13776,13722,13636,13582,13560,13490,13420,13350,13088,13162,13236,13310,12808,12866,12956,13014,12656,12602,12772,12718,12376,12306,12492,12422,16064,16010,15956,15902,16360,16290,16252,16182,15504,15578,15364,15438,15800,15858,15660,15718,14944,14890,15092,15038,15176,15106,15324,15254,14384,14458,14500,14574,14616,14674,14732,14790},{0,75,150,221,300,359,442,497,600,531,718,645,884,831,994,937,1200,1275,1062,1133,1436,1495,1290,1345,1768,1699,1662,1589,1988,1935,1874,1817,2400,2347,2550,2493,2124,2055,2266,2193,2872,2931,2990,3045,2580,2655,2690,2761,3536,3483,3398,3341,3324,3255,3178,3105,3976,4035,3870,3925,3748,3823,3634,3705,4800,4747,4694,4637,5100,5031,4986,4913,4248,4307,4110,4165,4532,4607,4386,4457,5744,5691,5862,5805,5980,5911,6090,6017,5160,5219,5310,5365,5380,5455,5522,5593,7072,7147,6966,7037,6796,6855,6682,6737,6648,6579,6510,6437,6356,6303,6210,6153,7952,8027,8070,8141,7740,7799,7850,7905,7496,7427,7646,7573,7268,7215,7410,7353,9600,9675,9494,9565,9388,9447,9274,9329,10200,10131,10062,9989,9972,9919,9826,9769,8496,8571,8614,8685,8220,8279,8330,8385,9064,8995,9214,9141,8772,8719,8914,8857,11488,11435,11382,11325,11724,11655,11610,11537,11960,12019,11822,11877,12180,12255,12034,12105,10320,10267,10438,10381,10620,10551,10730,10657,10760,10819,10910,10965,11044,11119,11186,11257,14144,14091,14294,14237,13932,13863,14074,14001,13592,13651,13710,13765,13364,13439,13474,13545,13296,13243,13158,13101,13020,12951,12874,12801,12712,12771,12606,12661,12420,12495,12306,12377,15904,15979,16054,16125,16140,16199,16282,16337,15480,15411,15598,15525,15700,15647,15810,15753,14992,15067,14854,14925,15292,15351,15146,15201,14536,14467,14430,14357,14820,14767,14706,14649},{0,76,152,212,304,380,424,484,608,556,760,692,848,796,968,900,1216,1164,1112,1044,1520,1468,1384,1316,1696,1772,1592,1652,1936,2012,1800,1860,2432,2508,2328,2388,2224,2300,2088,2148,3040,2988,2936,2868,2768,2716,2632,2564,3392,3340,3544,3476,3184,3132,3304,3236,3872,3948,4024,4084,3600,3676,3720,3780,4864,4940,5016,5076,4656,4732,4776,4836,4448,4396,4600,4532,4176,4124,4296,4228,6080,6028,5976,5908,5872,5820,5736,5668,5536,5612,5432,5492,5264,5340,5128,5188,6784,6860,6680,6740,7088,7164,6952,7012,6368,6316,6264,6196,6608,6556,6472,6404,7744,7692,7896,7828,8048,7996,8168,8100,7200,7276,7352,7412,7440,7516,7560,7620,9728,9804,9880,9940,10032,10108,10152,10212,9312,9260,9464,9396,9552,9500,9672,9604,8896,8844,8792,8724,9200,9148,9064,8996,8352,8428,8248,8308,8592,8668,8456,8516,12160,12236,12056,12116,11952,12028,11816,11876,11744,11692,11640,11572,11472,11420,11336,11268,11072,11020,11224,11156,10864,10812,10984,10916,10528,10604,10680,10740,10256,10332,10376,10436,13568,13644,13720,13780,13360,13436,13480,13540,14176,14124,14328,14260,13904,13852,14024,13956,12736,12684,12632,12564,12528,12476,12392,12324,13216,13292,13112,13172,12944,13020,12808,12868,15488,15564,15384,15444,15792,15868,15656,15716,16096,16044,15992,15924,16336,16284,16200,16132,14400,14348,14552,14484,14704,14652,14824,14756,14880,14956,15032,15092,15120,15196,15240,15300},{0,77,154,215,308,377,430,483,616,549,754,703,860,785,966,907,1232,1181,1098,1031,1508,1449,1406,1331,1720,1781,1570,1647,1932,1985,1814,1883,2464,2541,2362,2423,2196,2265,2062,2115,3016,2949,2898,2847,2812,2737,2662,2603,3440,3389,3562,3495,3140,3081,3294,3219,3864,3925,3970,4047,3628,3681,3766,3835,4928,4877,5082,5015,4724,4665,4846,4771,4392,4453,4530,4607,4124,4177,4230,4299,6032,6109,5898,5959,5796,5865,5694,5747,5624,5557,5474,5423,5324,5249,5206,5147,6880,6829,6778,6711,7124,7065,6990,6915,6280,6341,6162,6239,6588,6641,6438,6507,7728,7805,7850,7911,7940,8009,8094,8147,7256,7189,7362,7311,7532,7457,7670,7611,9856,9933,9754,9815,10164,10233,10030,10083,9448,9381,9330,9279,9692,9617,9542,9483,8784,8733,8906,8839,9060,9001,9214,9139,8248,8309,8354,8431,8460,8513,8598,8667,12064,12141,12218,12279,11796,11865,11918,11971,11592,11525,11730,11679,11388,11313,11494,11435,11248,11197,11114,11047,10948,10889,10846,10771,10648,10709,10498,10575,10412,10465,10294,10363,13760,13709,13658,13591,13556,13497,13422,13347,14248,14309,14130,14207,13980,14033,13830,13899,12560,12637,12682,12743,12324,12393,12478,12531,13176,13109,13282,13231,12876,12801,13014,12955,15456,15405,15610,15543,15700,15641,15822,15747,15880,15941,16018,16095,16188,16241,16294,16363,14512,14589,14378,14439,14724,14793,14622,14675,15064,14997,14914,14863,15340,15265,15222,15163},{0,78,156,210,312,374,420,490,624,574,748,674,840,774,980,922,1248,1198,1148,1074,1496,1430,1348,1290,1680,1758,1548,1602,1960,2022,1844,1914,2496,2446,2396,2322,2296,2230,2148,2090,2992,3070,2860,2914,2696,2758,2580,2650,3360,3438,3516,3570,3096,3158,3204,3274,3920,3870,4044,3970,3688,3622,3828,3770,4992,5070,4892,4946,4792,4854,4644,4714,4592,4542,4460,4386,4296,4230,4180,4122,5984,5934,6140,6066,5720,5654,5828,5770,5392,5470,5516,5570,5160,5222,5300,5370,6720,6670,6876,6802,7032,6966,7140,7082,6192,6270,6316,6370,6408,6470,6548,6618,7840,7918,7740,7794,8088,8150,7940,8010,7376,7326,7244,7170,7656,7590,7540,7482,9984,10062,10140,10194,9784,9846,9892,9962,9584,9534,9708,9634,9288,9222,9428,9370,9184,9134,9084,9010,8920,8854,8772,8714,8592,8670,8460,8514,8360,8422,8244,8314,11968,11918,11868,11794,12280,12214,12132,12074,11440,11518,11308,11362,11656,11718,11540,11610,10784,10862,10940,10994,11032,11094,11140,11210,10320,10270,10444,10370,10600,10534,10740,10682,13440,13518,13340,13394,13752,13814,13604,13674,14064,14014,13932,13858,14280,14214,14164,14106,12384,12334,12540,12466,12632,12566,12740,12682,12816,12894,12940,12994,13096,13158,13236,13306,15680,15630,15836,15762,15480,15414,15588,15530,16176,16254,16300,16354,15880,15942,16020,16090,14752,14830,14652,14706,14488,14550,14340,14410,15312,15262,15180,15106,15080,15014,14964,14906},{0,79,158,209,316,371,418,493,632,567,742,681,836,779,986,917,1264,1215,1134,1057,1484,1411,1362,1309,1672,1735,1558,1625,1972,2043,1834,1893,2528,2479,2430,2353,2268,2195,2114,2061,2968,3031,2822,2889,2724,2795,2618,2677,3344,3423,3470,3521,3116,3171,3250,3325,3944,3879,4086,4025,3668,3611,3786,3717,5056,5007,4958,4881,4860,4787,4706,4653,4536,4599,4390,4457,4228,4299,4122,4181,5936,6015,6062,6113,5644,5699,5778,5853,5448,5383,5590,5529,5236,5179,5354,5285,6688,6767,6846,6897,6940,6995,7042,7117,6232,6167,6342,6281,6500,6443,6650,6581,7888,7839,7758,7681,8172,8099,8050,7997,7336,7399,7222,7289,7572,7643,7434,7493,10112,10191,10014,10065,9916,9971,9762,9837,9720,9655,9574,9513,9412,9355,9306,9237,9072,9023,9198,9121,8780,8707,8914,8861,8456,8519,8598,8665,8244,8315,8362,8421,11872,11823,12030,11953,12124,12051,12226,12173,11288,11351,11398,11465,11556,11627,11706,11765,10896,10975,10766,10817,11180,11235,11058,11133,10472,10407,10358,10297,10708,10651,10570,10501,13376,13327,13534,13457,13692,13619,13794,13741,13880,13943,13990,14057,14084,14155,14234,14293,12464,12543,12334,12385,12684,12739,12562,12637,13000,12935,12886,12825,13300,13243,13162,13093,15776,15855,15678,15729,15516,15571,15362,15437,16344,16279,16198,16137,16100,16043,15994,15925,14672,14623,14798,14721,14444,14371,14578,14525,15144,15207,15286,15353,14868,14939,14986,15045},{0,80,160,240,320,272,480,432,640,720,544,624,960,912,864,816,1280,1360,1440,1520,1088,1040,1248,1200,1920,2000,1824,1904,1728,1680,1632,1584,2560,2640,2720,2800,2880,2832,3040,2992,2176,2256,2080,2160,2496,2448,2400,2352,3840,3920,4000,4080,3648,3600,3808,3760,3456,3536,3360,3440,3264,3216,3168,3120,5120,5200,5280,5360,5440,5392,5600,5552,5760,5840,5664,5744,6080,6032,5984,5936,4352,4432,4512,4592,4160,4112,4320,4272,4992,5072,4896,4976,4800,4752,4704,4656,7680,7760,7840,7920,8000,7952,8160,8112,7296,7376,7200,7280,7616,7568,7520,7472,6912,6992,7072,7152,6720,6672,6880,6832,6528,6608,6432,6512,6336,6288,6240,6192,10240,10320,10400,10480,10560,10512,10720,10672,10880,10960,10784,10864,11200,11152,11104,11056,11520,11600,11680,11760,11328,11280,11488,11440,12160,12240,12064,12144,11968,11920,11872,11824,8704,8784,8864,8944,9024,8976,9184,9136,8320,8400,8224,8304,8640,8592,8544,8496,9984,10064,10144,10224,9792,9744,9952,9904,9600,9680,9504,9584,9408,9360,9312,9264,15360,15440,15520,15600,15680,15632,15840,15792,16000,16080,15904,15984,16320,16272,16224,16176,14592,14672,14752,14832,14400,14352,14560,14512,15232,15312,15136,15216,15040,14992,14944,14896,13824,13904,13984,14064,14144,14096,14304,14256,13440,13520,13344,13424,13760,13712,13664,13616,13056,13136,13216,13296,12864,12816,13024,12976,12672,12752,12576,12656,12480,12432,12384,12336},{0,81,162,243,324,277,486,439,648,729,554,635,972,925,878,831,1296,1345,1458,1507,1108,1029,1270,1191,1944,1993,1850,1899,1756,1677,1662,1583,2592,2673,2690,2771,2916,2869,3014,2967,2216,2297,2058,2139,2540,2493,2382,2335,3888,3937,3986,4035,3700,3621,3798,3719,3512,3561,3354,3403,3324,3245,3166,3087,5184,5137,5346,5299,5380,5461,5542,5623,5832,5785,5738,5691,6028,6109,5934,6015,4432,4353,4594,4515,4116,4165,4278,4327,5080,5001,4986,4907,4764,4813,4670,4719,7776,7729,7874,7827,7972,8053,8070,8151,7400,7353,7242,7195,7596,7677,7438,7519,7024,6945,7122,7043,6708,6757,6806,6855,6648,6569,6490,6411,6332,6381,6174,6223,10368,10449,10274,10355,10692,10645,10598,10551,10760,10841,10922,11003,11084,11037,11246,11199,11664,11713,11570,11619,11476,11397,11382,11303,12056,12105,12218,12267,11868,11789,12030,11951,8864,8945,8706,8787,9188,9141,9030,8983,8232,8313,8330,8411,8556,8509,8654,8607,10160,10209,10002,10051,9972,9893,9814,9735,9528,9577,9626,9675,9340,9261,9438,9359,15552,15505,15458,15411,15748,15829,15654,15735,15944,15897,16106,16059,16140,16221,16302,16383,14800,14721,14706,14627,14484,14533,14390,14439,15192,15113,15354,15275,14876,14925,15038,15087,14048,14001,13890,13843,14244,14325,14086,14167,13416,13369,13514,13467,13612,13693,13710,13791,13296,13217,13138,13059,12980,13029,12822,12871,12664,12585,12762,12683,12348,12397,12446,12495},{0,82,164,246,328,282,492,446,656,706,564,614,984,906,892,814,1312,1394,1412,1494,1128,1082,1228,1182,1968,2018,1812,1862,1784,1706,1628,1550,2624,2578,2788,2742,2824,2906,2988,3070,2256,2178,2164,2086,2456,2506,2364,2414,3936,3890,4036,3990,3624,3706,3724,3806,3568,3490,3412,3334,3256,3306,3100,3150,5248,5330,5156,5238,5576,5530,5484,5438,5648,5698,5812,5862,5976,5898,6140,6062,4512,4594,4356,4438,4328,4282,4172,4126,4912,4962,5012,5062,4728,4650,4828,4750,7872,7826,7780,7734,8072,8154,7980,8062,7248,7170,7412,7334,7448,7498,7612,7662,7136,7090,6980,6934,6824,6906,6668,6750,6512,6434,6612,6534,6200,6250,6300,6350,10496,10578,10660,10742,10312,10266,10476,10430,11152,11202,11060,11110,10968,10890,10876,10798,11296,11378,11396,11478,11624,11578,11724,11678,11952,12002,11796,11846,12280,12202,12124,12046,9024,8978,9188,9142,8712,8794,8876,8958,8656,8578,8564,8486,8344,8394,8252,8302,9824,9778,9924,9878,10024,10106,10124,10206,9456,9378,9300,9222,9656,9706,9500,9550,15744,15826,15652,15734,15560,15514,15468,15422,16144,16194,16308,16358,15960,15882,16124,16046,14496,14578,14340,14422,14824,14778,14668,14622,14896,14946,14996,15046,15224,15146,15324,15246,14272,14226,14180,14134,13960,14042,13868,13950,13648,13570,13812,13734,13336,13386,13500,13550,13024,12978,12868,12822,13224,13306,13068,13150,12400,12322,12500,12422,12600,12650,12700,12750},{0,83,166,245,332,287,490,441,664,715,574,621,980,903,882,801,1328,1379,1430,1477,1148,1071,1242,1161,1960,2043,1806,1885,1764,1719,1602,1553,2656,2611,2758,2709,2860,2943,2954,3033,2296,2219,2142,2061,2484,2535,2322,2369,3920,3843,4086,4005,3612,3663,3770,3817,3528,3483,3438,3389,3204,3287,3106,3185,5312,5267,5222,5173,5516,5599,5418,5497,5720,5643,5886,5805,5908,5959,6066,6113,4592,4515,4438,4357,4284,4335,4122,4169,4968,4923,5070,5021,4644,4727,4738,4817,7840,7923,7686,7765,8172,8127,8010,7961,7224,7275,7326,7373,7540,7463,7634,7553,7056,7107,6966,7013,6876,6799,6778,6697,6408,6491,6574,6653,6212,6167,6370,6321,10624,10707,10534,10613,10444,10399,10346,10297,11032,11083,11198,11245,10836,10759,10994,10913,11440,11491,11286,11333,11772,11695,11610,11529,11816,11899,11918,11997,12132,12087,12226,12177,9184,9139,9030,8981,8876,8959,8714,8793,8568,8491,8670,8589,8244,8295,8338,8385,9936,9859,9846,9765,10140,10191,10042,10089,9288,9243,9454,9405,9476,9559,9634,9713,15680,15635,15846,15797,15372,15455,15530,15609,16344,16267,16254,16173,16020,16071,15922,15969,14448,14371,14550,14469,14652,14703,14746,14793,15080,15035,14926,14877,15268,15351,15106,15185,14112,14195,14214,14293,13932,13887,14026,13977,13752,13803,13598,13645,13556,13479,13394,13313,12816,12867,12982,13029,13148,13071,13306,13225,12424,12507,12334,12413,12740,12695,12642,12593},{0,84,168,252,336,260,504,428,672,756,520,604,1008,932,856,780,1344,1300,1512,1468,1040,1092,1208,1260,2016,1972,1864,1820,1712,1764,1560,1612,2688,2772,2600,2684,3024,2948,2936,2860,2080,2164,2184,2268,2416,2340,2520,2444,4032,3988,3944,3900,3728,3780,3640,3692,3424,3380,3528,3484,3120,3172,3224,3276,5376,5460,5544,5628,5200,5124,5368,5292,6048,6132,5896,5980,5872,5796,5720,5644,4160,4116,4328,4284,4368,4420,4536,4588,4832,4788,4680,4636,5040,5092,4888,4940,8064,8148,7976,8060,7888,7812,7800,7724,7456,7540,7560,7644,7280,7204,7384,7308,6848,6804,6760,6716,7056,7108,6968,7020,6240,6196,6344,6300,6448,6500,6552,6604,10752,10836,10920,11004,11088,11012,11256,11180,10400,10484,10248,10332,10736,10660,10584,10508,12096,12052,12264,12220,11792,11844,11960,12012,11744,11700,11592,11548,11440,11492,11288,11340,8320,8404,8232,8316,8656,8580,8568,8492,8736,8820,8840,8924,9072,8996,9176,9100,9664,9620,9576,9532,9360,9412,9272,9324,10080,10036,10184,10140,9776,9828,9880,9932,16128,16212,16296,16380,15952,15876,16120,16044,15776,15860,15624,15708,15600,15524,15448,15372,14912,14868,15080,15036,15120,15172,15288,15340,14560,14516,14408,14364,14768,14820,14616,14668,13696,13780,13608,13692,13520,13444,13432,13356,14112,14196,14216,14300,13936,13860,14040,13964,12480,12436,12392,12348,12688,12740,12600,12652,12896,12852,13000,12956,13104,13156,13208,13260},{0,85,170,255,340,257,510,427,680,765,514,599,1020,937,854,771,1360,1285,1530,1455,1028,1105,1198,1275,2040,1965,1874,1799,1708,1785,1542,1619,2720,2805,2570,2655,3060,2977,2910,2827,2056,2141,2210,2295,2396,2313,2550,2467,4080,4005,3930,3855,3748,3825,3598,3675,3416,3341,3570,3495,3084,3161,3238,3315,5440,5397,5610,5567,5140,5185,5310,5355,6120,6077,5954,5911,5820,5865,5654,5699,4112,4165,4282,4335,4420,4369,4590,4539,4792,4845,4626,4679,5100,5049,4934,4883,8160,8117,8010,7967,7860,7905,7710,7755,7496,7453,7650,7607,7196,7241,7350,7395,6832,6885,6682,6735,7140,7089,6990,6939,6168,6221,6322,6375,6476,6425,6630,6579,10880,10965,10794,10879,11220,11137,11134,11051,10280,10365,10370,10455,10620,10537,10710,10627,12240,12165,12154,12079,11908,11985,11822,11899,11640,11565,11730,11655,11308,11385,11398,11475,8224,8309,8330,8415,8564,8481,8670,8587,8840,8925,8738,8823,9180,9097,9078,8995,9584,9509,9690,9615,9252,9329,9358,9435,10200,10125,10098,10023,9868,9945,9766,9843,16320,16277,16234,16191,16020,16065,15934,15979,15720,15677,15810,15767,15420,15465,15510,15555,14992,15045,14906,14959,15300,15249,15214,15163,14392,14445,14482,14535,14700,14649,14790,14739,13664,13621,13770,13727,13364,13409,13470,13515,14280,14237,14178,14135,13980,14025,13878,13923,12336,12389,12442,12495,12644,12593,12750,12699,12952,13005,12850,12903,13260,13209,13158,13107},{0,86,172,250,344,270,500,418,688,742,540,586,1000,958,836,786,1376,1334,1484,1434,1080,1134,1172,1218,2000,1926,1916,1834,1672,1758,1572,1650,2752,2710,2668,2618,2968,3022,2868,2914,2160,2086,2268,2186,2344,2430,2436,2514,4000,4086,3852,3930,3832,3758,3668,3586,3344,3398,3516,3562,3144,3102,3300,3250,5504,5590,5420,5498,5336,5262,5236,5154,5936,5990,6044,6090,5736,5694,5828,5778,4320,4278,4172,4122,4536,4590,4372,4418,4688,4614,4860,4778,4872,4958,5028,5106,8000,7958,8172,8122,7704,7758,7860,7906,7664,7590,7516,7434,7336,7422,7172,7250,6688,6774,6796,6874,7032,6958,7124,7042,6288,6342,6204,6250,6600,6558,6500,6450,11008,11094,11180,11258,10840,10766,10996,10914,10672,10726,10524,10570,10472,10430,10308,10258,11872,11830,11980,11930,12088,12142,12180,12226,11472,11398,11388,11306,11656,11742,11556,11634,8640,8598,8556,8506,8344,8398,8244,8290,9072,8998,9180,9098,8744,8830,8836,8914,9376,9462,9228,9306,9720,9646,9556,9474,9744,9798,9916,9962,10056,10014,10212,10162,16000,16086,15916,15994,16344,16270,16244,16162,15408,15462,15516,15562,15720,15678,15812,15762,15328,15286,15180,15130,15032,15086,14868,14914,14672,14598,14844,14762,14344,14430,14500,14578,13376,13334,13548,13498,13592,13646,13748,13794,14064,13990,13916,13834,14248,14334,14084,14162,12576,12662,12684,12762,12408,12334,12500,12418,13200,13254,13116,13162,13000,12958,12900,12850},{0,87,174,249,348,267,498,421,696,751,534,577,996,947,842,797,1392,1319,1502,1417,1068,1147,1154,1237,1992,1951,1894,1841,1684,1731,1594,1645,2784,2743,2638,2585,3004,3051,2834,2885,2136,2063,2294,2209,2308,2387,2474,2557,3984,4039,3902,3945,3788,3739,3682,3637,3368,3455,3462,3537,3188,3107,3290,3213,5568,5527,5486,5433,5276,5323,5170,5221,6008,5935,6102,6017,5668,5747,5770,5853,4272,4327,4126,4169,4588,4539,4418,4373,4616,4703,4774,4849,4948,4867,5114,5037,7968,8055,8078,8153,7804,7723,7890,7813,7576,7631,7478,7521,7364,7315,7274,7229,6736,6663,6910,6825,6924,7003,7074,7157,6376,6335,6214,6161,6580,6627,6426,6477,11136,11223,11054,11129,10972,10891,10866,10789,10552,10607,10646,10689,10340,10291,10442,10397,12016,11943,11870,11785,12204,12283,12034,12117,11336,11295,11494,11441,11540,11587,11706,11757,8544,8503,8654,8601,8252,8299,8338,8389,9176,9103,9078,8993,8836,8915,8746,8829,9232,9287,9406,9449,9548,9499,9698,9653,9896,9983,9734,9809,10228,10147,10074,9997,15936,15895,16110,16057,16156,16203,16306,16357,15608,15535,15446,15361,15780,15859,15626,15709,15152,15207,15262,15305,14956,14907,15042,14997,14728,14815,14630,14705,14548,14467,14458,14381,13472,13559,13326,13401,13820,13739,13650,13573,13848,13903,14006,14049,14148,14099,14314,14269,12752,12679,12670,12585,12428,12507,12322,12405,13160,13119,13254,13201,12852,12899,12954,13005},{0,88,176,232,352,312,464,392,704,664,624,552,928,1016,784,840,1408,1496,1328,1384,1248,1208,1104,1032,1856,1816,2032,1960,1568,1656,1680,1736,2816,2904,2992,3048,2656,2616,2768,2696,2496,2456,2416,2344,2208,2296,2064,2120,3712,3800,3632,3688,4064,4024,3920,3848,3136,3096,3312,3240,3360,3448,3472,3528,5632,5720,5808,5864,5984,5944,6096,6024,5312,5272,5232,5160,5536,5624,5392,5448,4992,5080,4912,4968,4832,4792,4688,4616,4416,4376,4592,4520,4128,4216,4240,4296,7424,7512,7600,7656,7264,7224,7376,7304,8128,8088,8048,7976,7840,7928,7696,7752,6272,6360,6192,6248,6624,6584,6480,6408,6720,6680,6896,6824,6944,7032,7056,7112,11264,11352,11440,11496,11616,11576,11728,11656,11968,11928,11888,11816,12192,12280,12048,12104,10624,10712,10544,10600,10464,10424,10320,10248,11072,11032,11248,11176,10784,10872,10896,10952,9984,10072,10160,10216,9824,9784,9936,9864,9664,9624,9584,9512,9376,9464,9232,9288,8832,8920,8752,8808,9184,9144,9040,8968,8256,8216,8432,8360,8480,8568,8592,8648,14848,14936,15024,15080,15200,15160,15312,15240,14528,14488,14448,14376,14752,14840,14608,14664,16256,16344,16176,16232,16096,16056,15952,15880,15680,15640,15856,15784,15392,15480,15504,15560,12544,12632,12720,12776,12384,12344,12496,12424,13248,13208,13168,13096,12960,13048,12816,12872,13440,13528,13360,13416,13792,13752,13648,13576,13888,13848,14064,13992,14112,14200,14224,14280},{0,89,178,235,356,317,470,399,712,657,634,547,940,1013,798,839,1424,1481,1314,1403,1268,1197,1094,1055,1880,1793,2026,1971,1596,1637,1678,1751,2848,2937,2962,3019,2628,2589,2806,2735,2536,2481,2394,2307,2188,2261,2110,2151,3760,3817,3586,3675,4052,3981,3942,3903,3192,3105,3274,3219,3356,3397,3502,3575,5696,5657,5874,5803,5924,6013,6038,6095,5256,5329,5178,5219,5612,5557,5470,5383,5072,5001,4962,4923,4788,4845,4614,4703,4376,4417,4522,4595,4220,4133,4302,4247,7520,7481,7634,7563,7172,7261,7350,7407,8104,8177,7962,8003,7884,7829,7806,7719,6384,6313,6210,6171,6548,6605,6438,6527,6712,6753,6794,6867,7004,6917,7150,7095,11392,11481,11314,11371,11748,11709,11606,11535,11848,11793,12026,11939,12076,12149,12190,12231,10512,10569,10658,10747,10356,10285,10438,10399,11224,11137,11114,11059,10940,10981,10766,10839,10144,10233,10002,10059,9924,9885,9846,9775,9576,9521,9690,9603,9228,9301,9406,9447,8752,8809,8834,8923,9044,8973,9190,9151,8440,8353,8266,8211,8604,8645,8494,8567,15040,15001,14962,14891,15268,15357,15126,15183,14344,14417,14522,14563,14700,14645,14814,14727,16208,16137,16354,16315,15924,15981,16006,16095,15768,15809,15658,15731,15612,15525,15438,15383,12768,12729,12626,12555,12420,12509,12342,12399,13096,13169,13210,13251,12876,12821,13054,12967,13424,13353,13506,13467,13588,13645,13734,13823,14008,14049,13834,13907,14300,14213,14190,14135},{0,90,180,238,360,306,476,390,720,650,612,574,952,994,780,854,1440,1530,1300,1358,1224,1170,1148,1062,1904,1834,1988,1950,1560,1602,1708,1782,2880,2842,3060,2990,2600,2674,2716,2758,2448,2506,2340,2430,2296,2210,2124,2070,3808,3770,3668,3598,3976,4050,3900,3942,3120,3178,3204,3294,3416,3330,3564,3510,5760,5850,5684,5742,6120,6066,5980,5894,5200,5130,5348,5310,5432,5474,5516,5590,4896,4986,5012,5070,4680,4626,4860,4774,4592,4522,4420,4382,4248,4290,4140,4214,7616,7578,7540,7470,7336,7410,7196,7238,7952,8010,8100,8190,7800,7714,7884,7830,6240,6202,6356,6286,6408,6482,6588,6630,6832,6890,6660,6750,7128,7042,7020,6966,11520,11610,11700,11758,11368,11314,11484,11398,12240,12170,12132,12094,11960,12002,11788,11862,10400,10490,10260,10318,10696,10642,10620,10534,10864,10794,10948,10910,11032,11074,11180,11254,9792,9754,9972,9902,10024,10098,10140,10182,9360,9418,9252,9342,9720,9634,9548,9494,9184,9146,9044,8974,8840,8914,8764,8806,8496,8554,8580,8670,8280,8194,8428,8374,15232,15322,15156,15214,15080,15026,14940,14854,14672,14602,14820,14782,14392,14434,14476,14550,15904,15994,16020,16078,16200,16146,16380,16294,15600,15530,15428,15390,15768,15810,15660,15734,12480,12442,12404,12334,12712,12786,12572,12614,12816,12874,12964,13054,13176,13090,13260,13206,13664,13626,13780,13710,13320,13394,13500,13542,14256,14314,14084,14174,14040,13954,13932,13878},{0,91,182,237,364,311,474,385,728,643,622,565,948,1007,770,857,1456,1515,1286,1373,1244,1159,1130,1073,1896,1843,2014,1925,1540,1631,1714,1769,2912,2875,3030,2957,2572,2647,2746,2785,2488,2531,2318,2389,2260,2191,2146,2105,3792,3723,3686,3645,4028,4071,3850,3921,3080,3155,3262,3301,3428,3391,3538,3465,5824,5787,5750,5677,6060,6135,5914,5953,5144,5187,5294,5365,5492,5423,5570,5529,4976,4907,5062,5021,4636,4679,4778,4849,4520,4595,4382,4421,4292,4255,4210,4137,7584,7675,7446,7501,7372,7319,7290,7201,8056,7971,8142,8085,7700,7759,7842,7929,6160,6219,6310,6397,6524,6439,6602,6545,6856,6803,6782,6693,7076,7167,6930,6985,11648,11739,11574,11629,11500,11447,11354,11265,12120,12035,12270,12213,11828,11887,11906,11993,10288,10347,10374,10461,10588,10503,10730,10673,10984,10931,10846,10757,11140,11231,11058,11113,9952,9915,9814,9741,10124,10199,10042,10081,9272,9315,9358,9429,9556,9487,9698,9657,9040,8971,9190,9149,8764,8807,8842,8913,8584,8659,8510,8549,8420,8383,8274,8201,15168,15131,15350,15277,14892,14967,15002,15041,14744,14787,14638,14709,14580,14511,14402,14361,16112,16043,15942,15901,16284,16327,16170,16241,15400,15475,15518,15557,15684,15647,15858,15785,12320,12411,12438,12493,12620,12567,12794,12705,13048,12963,12878,12821,13204,13263,13090,13177,13712,13771,13606,13693,13564,13479,13386,13329,14152,14099,14334,14245,13860,13951,13970,14025},{0,92,184,228,368,300,456,404,736,700,600,516,912,972,808,884,1472,1436,1400,1316,1200,1260,1032,1108,1824,1916,1944,1988,1616,1548,1768,1716,2944,3036,2872,2916,2800,2732,2632,2580,2400,2364,2520,2436,2064,2124,2216,2292,3648,3612,3832,3748,3888,3948,3976,4052,3232,3324,3096,3140,3536,3468,3432,3380,5888,5980,6072,6116,5744,5676,5832,5780,5600,5564,5464,5380,5264,5324,5160,5236,4800,4764,4728,4644,5040,5100,4872,4948,4128,4220,4248,4292,4432,4364,4584,4532,7296,7388,7224,7268,7664,7596,7496,7444,7776,7740,7896,7812,7952,8012,8104,8180,6464,6428,6648,6564,6192,6252,6280,6356,7072,7164,6936,6980,6864,6796,6760,6708,11776,11868,11960,12004,12144,12076,12232,12180,11488,11452,11352,11268,11664,11724,11560,11636,11200,11164,11128,11044,10928,10988,10760,10836,10528,10620,10648,10692,10320,10252,10472,10420,9600,9692,9528,9572,9456,9388,9288,9236,10080,10044,10200,10116,9744,9804,9896,9972,8256,8220,8440,8356,8496,8556,8584,8660,8864,8956,8728,8772,9168,9100,9064,9012,14592,14684,14776,14820,14448,14380,14536,14484,15328,15292,15192,15108,14992,15052,14888,14964,15552,15516,15480,15396,15792,15852,15624,15700,15904,15996,16024,16068,16208,16140,16360,16308,12928,13020,12856,12900,13296,13228,13128,13076,12384,12348,12504,12420,12560,12620,12712,12788,14144,14108,14328,14244,13872,13932,13960,14036,13728,13820,13592,13636,13520,13452,13416,13364},{0,93,186,231,372,297,462,403,744,693,594,527,924,961,806,891,1488,1421,1386,1335,1188,1273,1054,1091,1848,1893,1922,2015,1612,1553,1782,1707,2976,3069,2842,2887,2772,2697,2670,2611,2376,2325,2546,2479,2108,2145,2182,2267,3696,3629,3786,3735,3844,3929,4030,4067,3224,3269,3106,3199,3564,3505,3414,3339,5952,5917,6138,6055,5684,5737,5774,5843,5544,5621,5394,5455,5340,5249,5222,5179,4752,4813,4650,4727,5092,5049,4958,4867,4216,4133,4290,4255,4364,4433,4534,4587,7392,7357,7258,7175,7572,7625,7470,7539,7688,7765,7858,7919,8060,7969,8134,8091,6448,6509,6538,6615,6212,6169,6398,6307,7128,7045,7010,6975,6828,6897,6678,6731,11904,11997,11834,11879,12276,12201,12110,12051,11368,11317,11474,11407,11548,11585,11686,11771,11088,11021,11242,11191,10788,10873,10910,10947,10680,10725,10498,10591,10444,10385,10358,10283,9504,9597,9626,9671,9300,9225,9454,9395,10184,10133,10098,10031,9916,9953,9734,9819,8432,8365,8266,8215,8580,8665,8510,8547,8728,8773,8866,8959,9068,9009,9174,9099,14784,14749,14714,14631,14516,14569,14350,14419,15144,15221,15250,15311,14940,14849,15078,15035,15376,15437,15530,15607,15716,15673,15838,15747,16120,16037,15938,15903,16268,16337,16182,16235,12896,12861,13018,12935,13076,13129,13230,13299,12424,12501,12338,12399,12796,12705,12614,12571,14256,14317,14090,14167,14020,13977,13950,13859,13656,13573,13794,13759,13356,13425,13462,13515},{0,94,188,226,376,294,452,410,752,686,588,530,904,982,820,874,1504,1470,1372,1282,1176,1222,1060,1146,1808,1870,1964,2034,1640,1590,1748,1674,3008,2974,2940,2850,2744,2790,2564,2650,2352,2414,2444,2514,2120,2070,2292,2218,3616,3710,3740,3778,3928,3846,4068,4026,3280,3214,3180,3122,3496,3574,3348,3402,6016,6110,5948,5986,5880,5798,5700,5658,5488,5422,5580,5522,5128,5206,5300,5354,4704,4670,4828,4738,4888,4934,5028,5114,4240,4302,4140,4210,4584,4534,4436,4362,7232,7198,7420,7330,7480,7526,7556,7642,7856,7918,7692,7762,8136,8086,8052,7978,6560,6654,6428,6466,6360,6278,6244,6202,6992,6926,7148,7090,6696,6774,6804,6858,12032,12126,12220,12258,11896,11814,11972,11930,11760,11694,11596,11538,11400,11478,11316,11370,10976,10942,10844,10754,11160,11206,11044,11130,10256,10318,10412,10482,10600,10550,10708,10634,9408,9374,9340,9250,9656,9702,9476,9562,9776,9838,9868,9938,10056,10006,10228,10154,8480,8574,8604,8642,8280,8198,8420,8378,9168,9102,9068,9010,8872,8950,8724,8778,14464,14558,14396,14434,14840,14758,14660,14618,14960,14894,15052,14994,15112,15190,15284,15338,15712,15678,15836,15746,15384,15430,15524,15610,16272,16334,16172,16242,16104,16054,15956,15882,13120,13086,13308,13218,12856,12902,12932,13018,12720,12782,12556,12626,12488,12438,12404,12330,13984,14078,13852,13890,14296,14214,14180,14138,13392,13326,13548,13490,13608,13686,13716,13770},{0,95,190,225,380,291,450,413,760,679,582,537,900,987,826,869,1520,1455,1358,1297,1164,1235,1074,1133,1800,1879,1974,2025,1652,1579,1738,1685,3040,3007,2910,2817,2716,2755,2594,2685,2328,2375,2470,2553,2148,2107,2266,2181,3600,3663,3758,3825,3948,3891,4050,3981,3304,3255,3158,3081,3476,3531,3370,3445,6080,6047,6014,5921,5820,5859,5634,5725,5432,5479,5510,5593,5188,5147,5370,5285,4656,4719,4750,4817,4940,4883,5106,5037,4296,4247,4214,4137,4532,4587,4362,4437,7200,7295,7326,7361,7516,7427,7650,7613,7896,7815,7782,7737,8100,8187,7962,8005,6608,6543,6510,6449,6316,6387,6162,6221,6952,7031,7062,7113,6740,6667,6890,6837,12160,12255,12094,12129,12028,11939,11842,11805,11640,11559,11718,11673,11268,11355,11450,11493,10864,10799,10958,10897,11020,11091,11186,11245,10376,10455,10294,10345,10740,10667,10570,10517,9312,9279,9438,9345,9500,9539,9634,9725,9880,9927,9766,9849,10212,10171,10074,9989,8592,8655,8494,8561,8428,8371,8274,8205,9064,9015,9174,9097,8724,8779,8874,8949,14400,14367,14590,14497,14652,14691,14722,14813,15032,15079,14854,14937,15300,15259,15226,15141,15792,15855,15630,15697,15564,15507,15474,15405,16200,16151,16374,16297,15924,15979,16010,16085,13216,13311,13086,13121,13020,12931,12898,12861,12632,12551,12774,12729,12324,12411,12442,12485,13904,13839,14062,14001,14124,14195,14226,14285,13480,13559,13334,13385,13780,13707,13674,13621},{0,96,192,160,384,480,320,288,768,864,960,928,640,736,576,544,1536,1632,1728,1696,1920,2016,1856,1824,1280,1376,1472,1440,1152,1248,1088,1056,3072,3168,3264,3232,3456,3552,3392,3360,3840,3936,4032,4000,3712,3808,3648,3616,2560,2656,2752,2720,2944,3040,2880,2848,2304,2400,2496,2464,2176,2272,2112,2080,6144,6240,6336,6304,6528,6624,6464,6432,6912,7008,7104,7072,6784,6880,6720,6688,7680,7776,7872,7840,8064,8160,8000,7968,7424,7520,7616,7584,7296,7392,7232,7200,5120,5216,5312,5280,5504,5600,5440,5408,5888,5984,6080,6048,5760,5856,5696,5664,4608,4704,4800,4768,4992,5088,4928,4896,4352,4448,4544,4512,4224,4320,4160,4128,12288,12384,12480,12448,12672,12768,12608,12576,13056,13152,13248,13216,12928,13024,12864,12832,13824,13920,14016,13984,14208,14304,14144,14112,13568,13664,13760,13728,13440,13536,13376,13344,15360,15456,15552,15520,15744,15840,15680,15648,16128,16224,16320,16288,16000,16096,15936,15904,14848,14944,15040,15008,15232,15328,15168,15136,14592,14688,14784,14752,14464,14560,14400,14368,10240,10336,10432,10400,10624,10720,10560,10528,11008,11104,11200,11168,10880,10976,10816,10784,11776,11872,11968,11936,12160,12256,12096,12064,11520,11616,11712,11680,11392,11488,11328,11296,9216,9312,9408,9376,9600,9696,9536,9504,9984,10080,10176,10144,9856,9952,9792,9760,8704,8800,8896,8864,9088,9184,9024,8992,8448,8544,8640,8608,8320,8416,8256,8224},{0,97,194,163,388,485,326,295,776,873,970,939,652,749,590,559,1552,1649,1746,1715,1940,2037,1878,1847,1304,1401,1498,1467,1180,1277,1118,1087,3104,3137,3298,3203,3492,3525,3430,3335,3880,3913,4074,3979,3756,3789,3694,3599,2608,2641,2802,2707,2996,3029,2934,2839,2360,2393,2554,2459,2236,2269,2174,2079,6208,6177,6274,6371,6596,6565,6406,6503,6984,6953,7050,7147,6860,6829,6670,6767,7760,7729,7826,7923,8148,8117,7958,8055,7512,7481,7578,7675,7388,7357,7198,7295,5216,5121,5282,5315,5604,5509,5414,5447,5992,5897,6058,6091,5868,5773,5678,5711,4720,4625,4786,4819,5108,5013,4918,4951,4472,4377,4538,4571,4348,4253,4158,4191,12416,12513,12354,12323,12548,12645,12742,12711,13192,13289,13130,13099,12812,12909,13006,12975,13968,14065,13906,13875,14100,14197,14294,14263,13720,13817,13658,13627,13340,13437,13534,13503,15520,15553,15458,15363,15652,15685,15846,15751,16296,16329,16234,16139,15916,15949,16110,16015,15024,15057,14962,14867,15156,15189,15350,15255,14776,14809,14714,14619,14396,14429,14590,14495,10432,10401,10242,10339,10564,10533,10630,10727,11208,11177,11018,11115,10828,10797,10894,10991,11984,11953,11794,11891,12116,12085,12182,12279,11736,11705,11546,11643,11356,11325,11422,11519,9440,9345,9250,9283,9572,9477,9638,9671,10216,10121,10026,10059,9836,9741,9902,9935,8944,8849,8754,8787,9076,8981,9142,9175,8696,8601,8506,8539,8316,8221,8382,8415},{0,98,196,166,392,490,332,302,784,882,980,950,664,762,604,574,1568,1602,1764,1670,1960,1994,1900,1806,1328,1362,1524,1430,1208,1242,1148,1054,3136,3106,3204,3302,3528,3498,3340,3438,3920,3890,3988,4086,3800,3770,3612,3710,2656,2562,2724,2758,3048,2954,2860,2894,2416,2322,2484,2518,2296,2202,2108,2142,6272,6370,6212,6182,6408,6506,6604,6574,7056,7154,6996,6966,6680,6778,6876,6846,7840,7874,7780,7686,7976,8010,8172,8078,7600,7634,7540,7446,7224,7258,7420,7326,5312,5282,5124,5222,5448,5418,5516,5614,6096,6066,5908,6006,5720,5690,5788,5886,4832,4738,4644,4678,4968,4874,5036,5070,4592,4498,4404,4438,4216,4122,4284,4318,12544,12642,12740,12710,12424,12522,12364,12334,12816,12914,13012,12982,13208,13306,13148,13118,14112,14146,14308,14214,13992,14026,13932,13838,13360,13394,13556,13462,13752,13786,13692,13598,15680,15650,15748,15846,15560,15530,15372,15470,15952,15922,16020,16118,16344,16314,16156,16254,15200,15106,15268,15302,15080,14986,14892,14926,14448,14354,14516,14550,14840,14746,14652,14686,10624,10722,10564,10534,10248,10346,10444,10414,10896,10994,10836,10806,11032,11130,11228,11198,12192,12226,12132,12038,11816,11850,12012,11918,11440,11474,11380,11286,11576,11610,11772,11678,9664,9634,9476,9574,9288,9258,9356,9454,9936,9906,9748,9846,10072,10042,10140,10238,9184,9090,8996,9030,8808,8714,8876,8910,8432,8338,8244,8278,8568,8474,8636,8670},{0,99,198,165,396,495,330,297,792,891,990,957,660,759,594,561,1584,1619,1782,1685,1980,2015,1914,1817,1320,1355,1518,1421,1188,1223,1122,1025,3168,3075,3238,3269,3564,3471,3370,3401,3960,3867,4030,4061,3828,3735,3634,3665,2640,2611,2710,2805,3036,3007,2842,2937,2376,2347,2446,2541,2244,2215,2050,2145,6336,6307,6150,6245,6476,6447,6538,6633,7128,7099,6942,7037,6740,6711,6802,6897,7920,7827,7734,7765,8060,7967,8122,8153,7656,7563,7470,7501,7268,7175,7330,7361,5280,5315,5222,5125,5420,5455,5610,5513,6072,6107,6014,5917,5684,5719,5874,5777,4752,4851,4694,4661,4892,4991,5082,5049,4488,4587,4430,4397,4100,4199,4290,4257,12672,12771,12614,12581,12300,12399,12490,12457,12952,13051,12894,12861,13076,13175,13266,13233,14256,14291,14198,14101,13884,13919,14074,13977,13480,13515,13422,13325,13604,13639,13794,13697,15840,15747,15654,15685,15468,15375,15530,15561,16120,16027,15934,15965,16244,16151,16306,16337,15312,15283,15126,15221,14940,14911,15002,15097,14536,14507,14350,14445,14660,14631,14722,14817,10560,10531,10630,10725,10444,10415,10250,10345,10840,10811,10910,11005,11220,11191,11026,11121,12144,12051,12214,12245,12028,11935,11834,11865,11368,11275,11438,11469,11748,11655,11554,11585,9504,9539,9702,9605,9388,9423,9322,9225,9784,9819,9982,9885,10164,10199,10098,10001,8976,9075,9174,9141,8860,8959,8794,8761,8200,8299,8398,8365,8580,8679,8514,8481},{0,100,200,172,400,500,344,316,800,836,1000,908,688,724,632,540,1600,1572,1672,1772,2000,1972,1816,1916,1376,1284,1448,1484,1264,1172,1080,1116,3200,3300,3144,3116,3344,3444,3544,3516,4000,4036,3944,3852,3632,3668,3832,3740,2752,2724,2568,2668,2896,2868,2968,3068,2528,2436,2344,2380,2160,2068,2232,2268,6400,6500,6600,6572,6288,6388,6232,6204,6688,6724,6888,6796,7088,7124,7032,6940,8000,7972,8072,8172,7888,7860,7704,7804,7264,7172,7336,7372,7664,7572,7480,7516,5504,5604,5448,5420,5136,5236,5336,5308,5792,5828,5736,5644,5936,5972,6136,6044,5056,5028,4872,4972,4688,4660,4760,4860,4320,4228,4136,4172,4464,4372,4536,4572,12800,12900,13000,12972,13200,13300,13144,13116,12576,12612,12776,12684,12464,12500,12408,12316,13376,13348,13448,13548,13776,13748,13592,13692,14176,14084,14248,14284,14064,13972,13880,13916,16000,16100,15944,15916,16144,16244,16344,16316,15776,15812,15720,15628,15408,15444,15608,15516,14528,14500,14344,14444,14672,14644,14744,14844,15328,15236,15144,15180,14960,14868,15032,15068,11008,11108,11208,11180,10896,10996,10840,10812,10272,10308,10472,10380,10672,10708,10616,10524,11584,11556,11656,11756,11472,11444,11288,11388,11872,11780,11944,11980,12272,12180,12088,12124,10112,10212,10056,10028,9744,9844,9944,9916,9376,9412,9320,9228,9520,9556,9720,9628,8640,8612,8456,8556,8272,8244,8344,8444,8928,8836,8744,8780,9072,8980,9144,9180},{0,101,202,175,404,497,350,315,808,845,994,903,700,729,630,531,1616,1589,1690,1791,1988,1953,1806,1899,1400,1309,1458,1495,1260,1161,1062,1091,3232,3269,3178,3087,3380,3409,3582,3483,3976,4077,3906,3879,3612,3705,3798,3763,2800,2709,2618,2655,2916,2817,2990,3019,2520,2493,2322,2423,2124,2089,2182,2275,6464,6437,6538,6639,6356,6321,6174,6267,6760,6669,6818,6855,7164,7065,6966,6995,7952,8053,8154,8127,7812,7905,7758,7723,7224,7261,7410,7319,7596,7625,7526,7427,5600,5509,5418,5455,5236,5137,5310,5339,5832,5805,5634,5735,5980,5945,6038,6131,5040,5077,4986,4895,4644,4673,4846,4747,4248,4349,4178,4151,4364,4457,4550,4515,12928,13029,12874,12847,13076,13169,13278,13243,12712,12749,12642,12551,12348,12377,12534,12435,13520,13493,13338,13439,13636,13601,13710,13803,14328,14237,14130,14167,13932,13833,13990,14019,15904,15941,16106,16015,16308,16337,16254,16155,15624,15725,15810,15783,15516,15609,15446,15411,14448,14357,14522,14559,14820,14721,14638,14667,15192,15165,15250,15351,15052,15017,14854,14947,11200,11173,11018,11119,10836,10801,10910,11003,10472,10381,10274,10311,10620,10521,10678,10707,11664,11765,11610,11583,11268,11361,11470,11435,11960,11997,11890,11799,12076,12105,12262,12163,10080,9989,10154,10191,9972,9873,9790,9819,9288,9261,9346,9447,9692,9657,9494,9587,8496,8533,8698,8607,8356,8385,8302,8203,8728,8829,8914,8887,9100,9193,9030,8995},{0,102,204,170,408,510,340,306,816,854,1020,922,680,718,612,514,1632,1542,1708,1738,2040,1950,1844,1874,1360,1334,1436,1530,1224,1198,1028,1122,3264,3238,3084,3178,3416,3390,3476,3570,4080,3990,3900,3930,3688,3598,3748,3778,2720,2758,2668,2570,2872,2910,3060,2962,2448,2550,2396,2362,2056,2158,2244,2210,6528,6630,6476,6442,6168,6270,6356,6322,6832,6870,6780,6682,6952,6990,7140,7042,8160,8070,7980,8010,7800,7710,7860,7890,7376,7350,7196,7290,7496,7470,7556,7650,5440,5414,5516,5610,5336,5310,5140,5234,5744,5654,5820,5850,6120,6030,5924,5954,4896,4934,5100,5002,4792,4830,4724,4626,4112,4214,4316,4282,4488,4590,4420,4386,13056,13158,13260,13226,12952,13054,12884,12850,12336,12374,12540,12442,12712,12750,12644,12546,13664,13574,13740,13770,13560,13470,13364,13394,13904,13878,13980,14074,14280,14254,14084,14178,16320,16294,16140,16234,15960,15934,16020,16114,15600,15510,15420,15450,15720,15630,15780,15810,14752,14790,14700,14602,14392,14430,14580,14482,14992,15094,14940,14906,15112,15214,15300,15266,10880,10982,10828,10794,11032,11134,11220,11186,10672,10710,10620,10522,10280,10318,10468,10370,11488,11398,11308,11338,11640,11550,11700,11730,12240,12214,12060,12154,11848,11822,11908,12002,9792,9766,9868,9962,10200,10174,10004,10098,9584,9494,9660,9690,9448,9358,9252,9282,8224,8262,8428,8330,8632,8670,8564,8466,8976,9078,9180,9146,8840,8942,8772,8738},{0,103,206,169,412,507,338,309,824,863,1014,913,676,707,618,525,1648,1559,1726,1753,2028,1931,1826,1861,1352,1327,1414,1505,1236,1203,1050,1149,3296,3207,3118,3145,3452,3355,3506,3541,4056,4031,3862,3953,3652,3619,3722,3821,2704,2807,2654,2617,2828,2923,3010,2981,2472,2511,2406,2305,2100,2131,2298,2205,6592,6567,6414,6505,6236,6203,6290,6389,6904,6815,6710,6737,7012,6915,7082,7117,8112,8151,8062,7961,7724,7755,7906,7813,7304,7407,7238,7201,7444,7539,7642,7613,5408,5447,5614,5513,5308,5339,5234,5141,5656,5759,5846,5809,6020,6115,5962,5933,4944,4919,5022,5113,4812,4779,4610,4709,4200,4111,4262,4289,4596,4499,4410,4445,13184,13287,13134,13097,12828,12923,13010,12981,12472,12511,12406,12305,12580,12611,12778,12685,13808,13719,13630,13657,13420,13323,13474,13509,14024,13999,13830,13921,14164,14131,14234,14333,16224,16135,16302,16329,16124,16027,15922,15957,15448,15423,15510,15601,15812,15779,15626,15725,14608,14711,14814,14777,14476,14571,14402,14373,14888,14927,15078,14977,15284,15315,15226,15133,10816,10791,10894,10985,11228,11195,11026,11125,10616,10527,10678,10705,10468,10371,10282,10317,11312,11351,11518,11417,11692,11723,11618,11525,12040,12143,12230,12193,11924,12019,11866,11837,9888,9927,9838,9737,10044,10075,10226,10133,9624,9727,9558,9521,9220,9315,9418,9389,8400,8375,8222,8313,8524,8491,8578,8677,9192,9103,8998,9025,8820,8723,8890,8925},{0,104,208,184,416,456,368,280,832,808,912,1016,736,648,560,600,1664,1768,1616,1592,1824,1864,2032,1944,1472,1448,1296,1400,1120,1032,1200,1240,3328,3432,3536,3512,3232,3272,3184,3096,3648,3624,3728,3832,4064,3976,3888,3928,2944,3048,2896,2872,2592,2632,2800,2712,2240,2216,2064,2168,2400,2312,2480,2520,6656,6760,6864,6840,7072,7112,7024,6936,6464,6440,6544,6648,6368,6280,6192,6232,7296,7400,7248,7224,7456,7496,7664,7576,8128,8104,7952,8056,7776,7688,7856,7896,5888,5992,6096,6072,5792,5832,5744,5656,5184,5160,5264,5368,5600,5512,5424,5464,4480,4584,4432,4408,4128,4168,4336,4248,4800,4776,4624,4728,4960,4872,5040,5080,13312,13416,13520,13496,13728,13768,13680,13592,14144,14120,14224,14328,14048,13960,13872,13912,12928,13032,12880,12856,13088,13128,13296,13208,12736,12712,12560,12664,12384,12296,12464,12504,14592,14696,14800,14776,14496,14536,14448,14360,14912,14888,14992,15096,15328,15240,15152,15192,16256,16360,16208,16184,15904,15944,16112,16024,15552,15528,15376,15480,15712,15624,15792,15832,11776,11880,11984,11960,12192,12232,12144,12056,11584,11560,11664,11768,11488,11400,11312,11352,10368,10472,10320,10296,10528,10568,10736,10648,11200,11176,11024,11128,10848,10760,10928,10968,8960,9064,9168,9144,8864,8904,8816,8728,8256,8232,8336,8440,8672,8584,8496,8536,9600,9704,9552,9528,9248,9288,9456,9368,9920,9896,9744,9848,10080,9992,10160,10200},{0,105,210,187,420,461,374,287,840,801,922,1011,748,645,574,599,1680,1785,1602,1579,1844,1885,2022,1935,1496,1457,1290,1379,1148,1045,1198,1223,3360,3401,3570,3483,3204,3309,3158,3135,3688,3585,3770,3795,4044,4005,3870,3959,2992,3033,2914,2827,2580,2685,2758,2735,2296,2193,2090,2115,2396,2357,2446,2535,6720,6697,6802,6907,7140,7053,6966,7007,6408,6497,6618,6579,6316,6341,6270,6167,7376,7353,7170,7275,7540,7453,7590,7631,8088,8177,8010,7971,7740,7765,7918,7815,5984,5897,6066,6107,5828,5805,5654,5759,5160,5185,5370,5267,5516,5605,5470,5431,4592,4505,4386,4427,4180,4157,4230,4335,4792,4817,4714,4611,4892,4981,5070,5031,13440,13545,13394,13371,13604,13645,13814,13727,14280,14241,14106,14195,13932,13829,14014,14039,12816,12921,12994,12971,13236,13277,13158,13071,12632,12593,12682,12771,12540,12437,12334,12359,14752,14793,14706,14619,14340,14445,14550,14527,15080,14977,14906,14931,15180,15141,15262,15351,16176,16217,16354,16267,16020,16125,15942,15919,15480,15377,15530,15555,15836,15797,15630,15719,11968,11945,11794,11899,12132,12045,12214,12255,11656,11745,11610,11571,11308,11333,11518,11415,10320,10297,10370,10475,10740,10653,10534,10575,11032,11121,11210,11171,10940,10965,10862,10759,9184,9097,9010,9051,8772,8749,8854,8959,8360,8385,8314,8211,8460,8549,8670,8631,9584,9497,9634,9675,9428,9405,9222,9327,9784,9809,9962,9859,10140,10229,10062,10023},{0,106,212,190,424,450,380,278,848,826,900,1006,760,658,556,582,1696,1738,1652,1566,1800,1890,2012,1974,1520,1434,1316,1358,1112,1074,1164,1254,3392,3370,3476,3582,3304,3202,3132,3158,3600,3706,3780,3758,4024,4050,3948,3846,3040,2954,2868,2910,2632,2594,2716,2806,2224,2266,2148,2062,2328,2418,2508,2470,6784,6890,6740,6718,6952,6978,7164,7062,6608,6586,6404,6510,6264,6162,6316,6342,7200,7242,7412,7326,7560,7650,7516,7478,8048,7962,8100,8142,7896,7858,7692,7782,6080,6058,5908,6014,5736,5634,5820,5846,5264,5370,5188,5166,5432,5458,5612,5510,4448,4362,4532,4574,4296,4258,4124,4214,4656,4698,4836,4750,5016,5106,4940,4902,13568,13674,13780,13758,13480,13506,13436,13334,13904,13882,13956,14062,14328,14226,14124,14150,13216,13258,13172,13086,12808,12898,13020,12982,12528,12442,12324,12366,12632,12594,12684,12774,14400,14378,14484,14590,14824,14722,14652,14678,15120,15226,15300,15278,15032,15058,14956,14854,16096,16010,15924,15966,16200,16162,16284,16374,15792,15834,15716,15630,15384,15474,15564,15526,12160,12266,12116,12094,11816,11842,12028,11926,11472,11450,11268,11374,11640,11538,11692,11718,10528,10570,10740,10654,10376,10466,10332,10294,10864,10778,10916,10958,11224,11186,11020,11110,8896,8874,8724,8830,9064,8962,9148,9174,8592,8698,8516,8494,8248,8274,8428,8326,9312,9226,9396,9438,9672,9634,9500,9590,10032,10074,10212,10126,9880,9970,9804,9766},{0,107,214,189,428,455,378,273,856,819,910,997,756,671,546,585,1712,1755,1638,1549,1820,1911,1994,1953,1512,1411,1342,1365,1092,1071,1170,1273,3424,3339,3510,3549,3276,3239,3098,3185,3640,3667,3822,3717,3988,4095,3906,3881,3024,3003,2822,2925,2684,2583,2730,2753,2184,2275,2142,2101,2340,2383,2546,2457,6848,6827,6678,6781,7020,6919,7098,7121,6552,6643,6478,6437,6196,6239,6370,6281,7280,7195,7334,7373,7644,7607,7434,7521,7976,8003,8190,8085,7812,7919,7762,7737,6048,6091,6006,5917,5644,5735,5850,5809,5368,5267,5166,5189,5460,5439,5506,5609,4368,4475,4550,4525,4284,4311,4202,4097,4680,4643,4766,4853,5092,5007,4914,4953,13696,13803,13654,13629,13356,13383,13562,13457,14040,14003,13838,13925,14196,14111,14242,14281,13104,13147,13286,13197,12956,13047,12874,12833,12392,12291,12478,12501,12740,12719,12562,12665,14560,14475,14390,14429,14668,14631,14746,14833,15288,15315,15214,15109,14868,14975,15042,15017,15952,15931,16006,16109,16380,16279,16170,16193,15624,15715,15838,15797,15524,15567,15474,15385,12096,12075,12182,12285,12012,11911,11834,11857,11288,11379,11470,11429,11700,11743,11618,11529,10736,10651,10534,10573,10332,10295,10378,10465,10920,10947,10878,10773,11012,11119,11218,11193,8736,8779,8950,8861,9100,9191,9050,9009,8568,8467,8622,8645,8404,8383,8194,8297,9360,9467,9286,9261,9532,9559,9706,9601,10184,10147,10014,10101,9828,9743,9906,9945},{0,108,216,180,432,476,360,260,864,780,952,980,720,700,520,612,1728,1708,1560,1652,1904,1820,1960,1988,1440,1484,1400,1300,1040,1148,1224,1188,3456,3564,3416,3380,3120,3164,3304,3204,3808,3724,3640,3668,3920,3900,3976,4068,2880,2860,2968,3060,2800,2716,2600,2628,2080,2124,2296,2196,2448,2556,2376,2340,6912,7020,7128,7092,6832,6876,6760,6660,6240,6156,6328,6356,6608,6588,6408,6500,7616,7596,7448,7540,7280,7196,7336,7364,7840,7884,7800,7700,7952,8060,8136,8100,5760,5868,5720,5684,5936,5980,6120,6020,5600,5516,5432,5460,5200,5180,5256,5348,4160,4140,4248,4340,4592,4508,4392,4420,4896,4940,5112,5012,4752,4860,4680,4644,13824,13932,14040,14004,14256,14300,14184,14084,13664,13580,13752,13780,13520,13500,13320,13412,12480,12460,12312,12404,12656,12572,12712,12740,13216,13260,13176,13076,12816,12924,13000,12964,15232,15340,15192,15156,14896,14940,15080,14980,14560,14476,14392,14420,14672,14652,14728,14820,15680,15660,15768,15860,15600,15516,15400,15428,15904,15948,16120,16020,16272,16380,16200,16164,11520,11628,11736,11700,11440,11484,11368,11268,11872,11788,11960,11988,12240,12220,12040,12132,11200,11180,11032,11124,10864,10780,10920,10948,10400,10444,10360,10260,10512,10620,10696,10660,8320,8428,8280,8244,8496,8540,8680,8580,9184,9100,9016,9044,8784,8764,8840,8932,9792,9772,9880,9972,10224,10140,10024,10052,9504,9548,9720,9620,9360,9468,9288,9252},{0,109,218,183,436,473,366,259,872,773,946,991,732,689,518,619,1744,1725,1546,1639,1892,1801,1982,2003,1464,1493,1378,1295,1036,1121,1238,1211,3488,3533,3450,3351,3092,3193,3278,3235,3784,3749,3602,3711,3964,3857,4006,4043,2928,2845,2986,3015,2756,2729,2590,2675,2072,2165,2242,2223,2476,2497,2422,2331,6976,6957,7066,7159,6900,6809,6702,6723,6184,6213,6386,6303,6556,6641,6470,6443,7568,7677,7498,7463,7204,7241,7422,7315,7928,7829,7714,7759,8012,7969,8086,8187,5856,5773,5690,5719,5972,5945,6030,6115,5512,5605,5458,5439,5180,5201,5350,5259,4144,4189,4330,4231,4484,4585,4446,4403,4952,4917,4994,5103,4844,4737,4662,4699,13952,14061,13914,13879,14132,14169,14318,14211,13800,13701,13618,13663,13404,13361,13446,13547,12368,12349,12426,12519,12772,12681,12606,12627,13112,13141,13282,13199,12940,13025,12886,12859,15136,15181,15354,15255,14996,15097,14926,14883,14408,14373,14482,14591,14844,14737,14630,14667,15856,15773,15658,15687,15428,15401,15518,15603,16024,16117,15938,15919,16172,16193,16374,16283,11712,11693,11546,11639,11380,11289,11438,11459,11944,11973,11890,11807,12060,12145,12230,12203,11024,11133,11210,11175,10916,10953,10878,10771,10360,10261,10402,10447,10700,10657,10518,10619,8288,8205,8378,8407,8660,8633,8462,8547,8968,9061,9170,9151,8892,8913,8806,8715,9904,9949,9834,9735,9988,10089,10206,10163,9688,9653,9474,9583,9324,9217,9398,9435},{0,110,220,178,440,470,356,266,880,798,940,962,712,678,532,634,1760,1678,1596,1618,1880,1846,1924,2026,1424,1534,1356,1314,1064,1094,1268,1178,3520,3502,3356,3442,3192,3094,3236,3274,3760,3806,3692,3586,3848,3942,4052,4026,2848,2894,3068,2962,2712,2806,2628,2602,2128,2110,2188,2274,2536,2438,2356,2394,7040,7150,7004,6962,6712,6742,6884,6794,6384,6302,6188,6210,6472,6438,6548,6650,7520,7438,7612,7634,7384,7350,7172,7274,7696,7806,7884,7842,8104,8134,8052,7962,5696,5678,5788,5874,6136,6038,5924,5962,5424,5470,5612,5506,5256,5350,5204,5178,4256,4302,4220,4114,4376,4470,4548,4522,5072,5054,4876,4962,4712,4614,4788,4826,14080,14190,14300,14258,14008,14038,13924,13834,13424,13342,13484,13506,13768,13734,13588,13690,12768,12686,12604,12626,12376,12342,12420,12522,12944,13054,12876,12834,13096,13126,13300,13210,15040,15022,14876,14962,15224,15126,15268,15306,14768,14814,14700,14594,14344,14438,14548,14522,15392,15438,15612,15506,15768,15862,15684,15658,16208,16190,16268,16354,16104,16006,15924,15962,11392,11502,11356,11314,11576,11606,11748,11658,12272,12190,12076,12098,11848,11814,11924,12026,10848,10766,10940,10962,11224,11190,11012,11114,10512,10622,10700,10658,10408,10438,10356,10266,8512,8494,8604,8690,8440,8342,8228,8266,8752,8798,8940,8834,9096,9190,9044,9018,10144,10190,10108,10002,9752,9846,9924,9898,9424,9406,9228,9314,9576,9478,9652,9690},{0,111,222,177,444,467,354,269,888,791,934,969,708,683,538,629,1776,1695,1582,1601,1868,1827,1938,2045,1416,1511,1366,1337,1076,1115,1258,1157,3552,3471,3390,3409,3164,3123,3202,3309,3736,3831,3654,3625,3876,3915,4090,3989,2832,2943,3022,2977,2732,2755,2674,2589,2152,2055,2230,2265,2516,2491,2314,2405,7104,7087,6942,7025,6780,6675,6818,6861,6328,6359,6246,6153,6404,6507,6618,6581,7472,7519,7662,7553,7308,7395,7250,7229,7752,7719,7830,7929,8180,8091,7978,8005,5664,5711,5886,5777,6044,6131,5954,5933,5464,5431,5510,5609,5348,5259,5178,5205,4304,4287,4110,4193,4460,4355,4530,4573,5032,5063,4982,4889,4628,4731,4810,4773,14208,14319,14174,14129,13884,13907,14050,13965,13560,13463,13350,13385,13636,13611,13722,13813,12656,12575,12718,12737,12492,12451,12306,12413,12808,12903,13014,12985,13236,13275,13162,13061,14944,14863,15038,15057,15324,15283,15106,15213,14616,14711,14790,14761,14500,14539,14458,14357,15504,15615,15438,15393,15660,15683,15858,15773,16360,16263,16182,16217,15956,15931,16010,16101,11328,11311,11422,11505,11772,11667,11554,11597,12088,12119,12262,12169,11908,12011,11866,11829,10928,10975,10862,10753,11020,11107,11218,11197,10696,10663,10518,10617,10356,10267,10410,10437,8608,8655,8574,8465,8220,8307,8386,8365,8920,8887,8710,8809,9060,8971,9146,9173,10064,10047,10126,10209,9964,9859,9778,9821,9256,9287,9462,9369,9620,9723,9546,9509},{0,112,224,144,448,432,288,336,896,1008,864,784,576,560,672,720,1792,1904,2016,1936,1728,1712,1568,1616,1152,1264,1120,1040,1344,1328,1440,1488,3584,3696,3808,3728,4032,4016,3872,3920,3456,3568,3424,3344,3136,3120,3232,3280,2304,2416,2528,2448,2240,2224,2080,2128,2688,2800,2656,2576,2880,2864,2976,3024,7168,7280,7392,7312,7616,7600,7456,7504,8064,8176,8032,7952,7744,7728,7840,7888,6912,7024,7136,7056,6848,6832,6688,6736,6272,6384,6240,6160,6464,6448,6560,6608,4608,4720,4832,4752,5056,5040,4896,4944,4480,4592,4448,4368,4160,4144,4256,4304,5376,5488,5600,5520,5312,5296,5152,5200,5760,5872,5728,5648,5952,5936,6048,6096,14336,14448,14560,14480,14784,14768,14624,14672,15232,15344,15200,15120,14912,14896,15008,15056,16128,16240,16352,16272,16064,16048,15904,15952,15488,15600,15456,15376,15680,15664,15776,15824,13824,13936,14048,13968,14272,14256,14112,14160,13696,13808,13664,13584,13376,13360,13472,13520,12544,12656,12768,12688,12480,12464,12320,12368,12928,13040,12896,12816,13120,13104,13216,13264,9216,9328,9440,9360,9664,9648,9504,9552,10112,10224,10080,10000,9792,9776,9888,9936,8960,9072,9184,9104,8896,8880,8736,8784,8320,8432,8288,8208,8512,8496,8608,8656,10752,10864,10976,10896,11200,11184,11040,11088,10624,10736,10592,10512,10304,10288,10400,10448,11520,11632,11744,11664,11456,11440,11296,11344,11904,12016,11872,11792,12096,12080,12192,12240},{0,113,226,147,452,437,294,343,904,1017,874,795,588,573,686,735,1808,1889,2034,1923,1748,1701,1590,1607,1176,1257,1146,1035,1372,1325,1470,1487,3616,3665,3778,3763,4068,3989,3846,3959,3496,3545,3402,3387,3180,3101,3214,3327,2352,2369,2514,2467,2292,2181,2070,2151,2744,2761,2650,2603,2940,2829,2974,3055,7232,7217,7330,7379,7556,7669,7526,7447,8136,8121,7978,8027,7692,7805,7918,7839,6992,6945,7090,7107,6804,6885,6774,6663,6360,6313,6202,6219,6428,6509,6654,6543,4704,4625,4738,4851,5028,5077,4934,4919,4584,4505,4362,4475,4140,4189,4302,4287,5488,5377,5522,5603,5300,5317,5206,5159,5880,5769,5658,5739,5948,5965,6110,6063,14464,14577,14434,14355,14660,14645,14758,14807,15112,15225,15338,15259,15052,15037,14894,14943,16272,16353,16242,16131,15956,15909,16054,16071,15384,15465,15610,15499,15836,15789,15678,15695,13984,14033,13890,13875,14180,14101,14214,14327,13608,13657,13770,13755,13548,13469,13326,13439,12720,12737,12626,12579,12404,12293,12438,12519,12856,12873,13018,12971,13308,13197,13086,13167,9408,9393,9250,9299,9476,9589,9702,9623,10056,10041,10154,10203,9868,9981,9838,9759,9168,9121,9010,9027,8724,8805,8950,8839,8280,8233,8378,8395,8604,8685,8574,8463,10976,10897,10754,10867,11044,11093,11206,11191,10600,10521,10634,10747,10412,10461,10318,10303,11760,11649,11538,11619,11316,11333,11478,11431,11896,11785,11930,12011,12220,12237,12126,12079},{0,114,228,150,456,442,300,350,912,994,884,774,600,554,700,718,1824,1874,1988,1974,1768,1690,1548,1662,1200,1218,1108,1062,1400,1290,1436,1518,3648,3634,3748,3798,3976,4090,3948,3870,3536,3490,3380,3398,3096,3178,3324,3214,2400,2322,2436,2550,2216,2266,2124,2110,2800,2690,2580,2662,2872,2890,3036,2990,7296,7410,7268,7190,7496,7482,7596,7646,7952,8034,8180,8070,7896,7850,7740,7758,7072,7122,6980,6966,6760,6682,6796,6910,6192,6210,6356,6310,6648,6538,6428,6510,4800,4786,4644,4694,4872,4986,5100,5022,4432,4386,4532,4550,4248,4330,4220,4110,5600,5522,5380,5494,5160,5210,5324,5310,5744,5634,5780,5862,6072,6090,5980,5934,14592,14706,14820,14742,14536,14522,14380,14430,14992,15074,14964,14854,15192,15146,15292,15310,15904,15954,16068,16054,16360,16282,16140,16254,15792,15810,15700,15654,15480,15370,15516,15598,14144,14130,14244,14294,13960,14074,13932,13854,13520,13474,13364,13382,13592,13674,13820,13710,12384,12306,12420,12534,12712,12762,12620,12606,13296,13186,13076,13158,12856,12874,13020,12974,9600,9714,9572,9494,9288,9274,9388,9438,9744,9826,9972,9862,10200,10154,10044,10062,8864,8914,8772,8758,9064,8986,9100,9214,8496,8514,8660,8614,8440,8330,8220,8302,11200,11186,11044,11094,10760,10874,10988,10910,10320,10274,10420,10438,10648,10730,10620,10510,11488,11410,11268,11382,11560,11610,11724,11710,12144,12034,12180,12262,11960,11978,11868,11822},{0,115,230,149,460,447,298,345,920,1003,894,781,596,551,690,705,1840,1859,2006,1957,1788,1679,1562,1641,1192,1243,1102,1085,1380,1303,1410,1521,3680,3603,3718,3829,4012,4063,3914,3897,3576,3467,3358,3437,3124,3143,3282,3233,2384,2339,2486,2501,2204,2287,2170,2057,2760,2747,2606,2653,2820,2935,3042,2961,7360,7347,7206,7253,7436,7551,7658,7577,8024,7979,8126,8141,7828,7911,7794,7681,7152,7043,6934,7013,6716,6735,6874,6825,6248,6171,6286,6397,6564,6615,6466,6449,4768,4819,4678,4661,4972,4895,5002,5113,4408,4427,4574,4525,4340,4231,4114,4193,5520,5603,5494,5381,5212,5167,5306,5321,5640,5755,5870,5789,6084,6071,5922,5969,14720,14835,14694,14613,14412,14399,14506,14553,14872,14955,15102,14989,15316,15271,15154,15169,16048,16067,15958,15909,16252,16143,16282,16361,15656,15707,15822,15805,15588,15511,15362,15473,14304,14227,14086,14197,13868,13919,14026,14009,13432,13323,13470,13549,13748,13767,13650,13601,12496,12451,12342,12357,12572,12655,12794,12681,13128,13115,13230,13277,12932,13047,12898,12817,9536,9523,9638,9685,9356,9471,9322,9241,9944,9899,9790,9805,10004,10087,10226,10113,8816,8707,8854,8933,9148,9167,9050,9001,8680,8603,8462,8573,8228,8279,8386,8369,11040,11091,11206,11189,10988,10911,10762,10873,10424,10443,10334,10285,10612,10503,10642,10721,11280,11363,11510,11397,11740,11695,11578,11593,12168,12283,12142,12061,11844,11831,11938,11985},{0,116,232,156,464,420,312,332,928,980,840,828,624,516,664,748,1856,1844,1960,2012,1680,1764,1656,1548,1248,1172,1032,1148,1328,1348,1496,1452,3712,3828,3688,3612,3920,3876,4024,4044,3360,3412,3528,3516,3312,3204,3096,3180,2496,2484,2344,2396,2064,2148,2296,2188,2656,2580,2696,2812,2992,3012,2904,2860,7424,7540,7656,7580,7376,7332,7224,7244,7840,7892,7752,7740,8048,7940,8088,8172,6720,6708,6824,6876,7056,7140,7032,6924,6624,6548,6408,6524,6192,6212,6360,6316,4992,5108,4968,4892,4688,4644,4792,4812,4128,4180,4296,4284,4592,4484,4376,4460,5312,5300,5160,5212,5392,5476,5624,5516,5984,5908,6024,6140,5808,5828,5720,5676,14848,14964,15080,15004,15312,15268,15160,15180,14752,14804,14664,14652,14448,14340,14488,14572,15680,15668,15784,15836,15504,15588,15480,15372,16096,16020,15880,15996,16176,16196,16344,16300,13440,13556,13416,13340,13648,13604,13752,13772,14112,14164,14280,14268,14064,13956,13848,13932,13248,13236,13096,13148,12816,12900,13048,12940,12384,12308,12424,12540,12720,12740,12632,12588,9984,10100,10216,10140,9936,9892,9784,9804,9376,9428,9288,9276,9584,9476,9624,9708,8256,8244,8360,8412,8592,8676,8568,8460,9184,9108,8968,9084,8752,8772,8920,8876,10624,10740,10600,10524,10320,10276,10424,10444,10784,10836,10952,10940,11248,11140,11032,11116,11968,11956,11816,11868,12048,12132,12280,12172,11616,11540,11656,11772,11440,11460,11352,11308},{0,117,234,159,468,417,318,331,936,989,834,823,636,521,662,739,1872,1829,1978,1999,1668,1777,1646,1563,1272,1165,1042,1127,1324,1369,1478,1459,3744,3797,3658,3647,3956,3841,3998,4075,3336,3453,3554,3479,3292,3241,3126,3139,2544,2437,2330,2415,2084,2129,2254,2235,2648,2605,2738,2759,2956,3065,2918,2835,7488,7477,7594,7647,7316,7393,7294,7179,7912,7837,7682,7799,7996,8009,8150,8099,6672,6757,6906,6799,7108,7089,6958,7003,6584,6605,6482,6439,6252,6169,6278,6387,5088,5013,4874,4991,4660,4673,4830,4779,4168,4157,4258,4311,4508,4585,4470,4355,5296,5317,5210,5167,5476,5393,5518,5627,5912,5997,6130,6023,5836,5817,5670,5715,14976,15093,14954,14879,15188,15137,15294,15307,14632,14685,14786,14775,14588,14473,14358,14435,15824,15781,15674,15695,15364,15473,15598,15515,15992,15885,16018,16103,16300,16345,16198,16179,13344,13397,13514,13503,13812,13697,13598,13675,14216,14333,14178,14103,13916,13865,14006,14019,13168,13061,13210,13295,12964,13009,12878,12859,12504,12461,12338,12359,12556,12665,12774,12691,10176,10165,10026,10079,9748,9825,9982,9867,9320,9245,9346,9463,9660,9673,9558,9507,8336,8421,8314,8207,8516,8497,8622,8667,9016,9037,9170,9127,8940,8857,8710,8819,10592,10517,10634,10751,10420,10433,10334,10283,10952,10941,10786,10839,11036,11113,11254,11139,11824,11845,11994,11951,12260,12177,12046,12155,11672,11757,11634,11527,11340,11321,11430,11475},{0,118,236,154,472,430,308,322,944,966,860,810,616,542,644,754,1888,1814,1932,2042,1720,1742,1620,1570,1232,1190,1084,1098,1288,1406,1508,1426,3776,3766,3628,3674,3864,3950,4084,3970,3440,3334,3484,3562,3240,3294,3140,3122,2464,2518,2380,2362,2168,2062,2196,2274,2576,2662,2812,2698,3016,3006,2852,2898,7552,7670,7532,7450,7256,7214,7348,7362,7728,7750,7900,7850,8168,8094,7940,8050,6880,6806,6668,6778,6968,6990,7124,7074,6480,6438,6588,6602,6280,6398,6244,6162,4928,4918,5036,5082,4760,4846,4724,4610,4336,4230,4124,4202,4392,4446,4548,4530,5152,5206,5324,5306,5624,5518,5396,5474,6032,6118,6012,5898,5704,5694,5796,5842,15104,15222,15340,15258,15064,15022,14900,14914,14512,14534,14428,14378,14696,14622,14724,14834,15456,15382,15500,15610,15800,15822,15700,15650,16336,16294,16188,16202,15880,15998,16100,16018,13760,13750,13612,13658,13336,13422,13556,13442,13936,13830,13980,14058,14248,14302,14148,14130,12960,13014,12876,12858,13176,13070,13204,13282,12560,12646,12796,12682,12488,12478,12324,12370,9856,9974,9836,9754,10072,10030,10164,10178,9520,9542,9692,9642,9448,9374,9220,9330,8672,8598,8460,8570,8248,8270,8404,8354,8784,8742,8892,8906,9096,9214,9060,8978,10304,10294,10412,10458,10648,10734,10612,10498,11248,11142,11036,11114,10792,10846,10948,10930,12064,12118,12236,12218,12024,11918,11796,11874,11408,11494,11388,11274,11592,11582,11684,11730},{0,119,238,153,476,427,306,325,952,975,854,801,612,531,650,765,1904,1799,1950,2025,1708,1755,1602,1589,1224,1215,1062,1105,1300,1379,1530,1421,3808,3735,3598,3705,3900,3915,4050,4005,3416,3375,3510,3521,3204,3315,3178,3101,2448,2535,2430,2313,2124,2107,2210,2261,2600,2655,2758,2737,3060,2947,2842,2925,7616,7607,7470,7513,7196,7275,7410,7301,7800,7695,7830,7905,8100,8147,8010,7997,6832,6855,6750,6697,7020,6939,7042,7157,6408,6527,6630,6545,6356,6307,6202,6221,4896,4951,5070,5049,4860,4747,4626,4709,4248,4335,4214,4097,4420,4403,4522,4573,5200,5159,5310,5321,5516,5627,5474,5397,6120,6047,5894,6001,5684,5699,5850,5805,15232,15351,15214,15129,14940,14891,15026,15045,14392,14415,14550,14497,14820,14739,14602,14717,15600,15495,15390,15465,15660,15707,15810,15797,16200,16191,16294,16337,16020,16099,15994,15885,13664,13591,13710,13817,13500,13515,13394,13349,14040,13999,13878,13889,14084,14195,14314,14237,12816,12903,13054,12937,13260,13243,13090,13141,12712,12767,12614,12593,12404,12291,12442,12525,9792,9783,9902,9945,10140,10219,10098,9989,9720,9615,9494,9569,9252,9299,9418,9405,8496,8519,8670,8617,8428,8347,8194,8309,8840,8959,8806,8721,9044,8995,9146,9165,10400,10455,10318,10297,10620,10507,10642,10725,11032,11119,11254,11137,10948,10931,10794,10845,12240,12199,12094,12105,11788,11899,12002,11925,11368,11295,11398,11505,11700,11715,11610,11565},{0,120,240,136,480,408,272,360,960,952,816,840,544,600,720,680,1920,2040,1904,1800,1632,1560,1680,1768,1088,1080,1200,1224,1440,1496,1360,1320,3840,3960,4080,3976,3808,3736,3600,3688,3264,3256,3120,3144,3360,3416,3536,3496,2176,2296,2160,2056,2400,2328,2448,2536,2880,2872,2992,3016,2720,2776,2640,2600,7680,7800,7920,7816,8160,8088,7952,8040,7616,7608,7472,7496,7200,7256,7376,7336,6528,6648,6512,6408,6240,6168,6288,6376,6720,6712,6832,6856,7072,7128,6992,6952,4352,4472,4592,4488,4320,4248,4112,4200,4800,4792,4656,4680,4896,4952,5072,5032,5760,5880,5744,5640,5984,5912,6032,6120,5440,5432,5552,5576,5280,5336,5200,5160,15360,15480,15600,15496,15840,15768,15632,15720,16320,16312,16176,16200,15904,15960,16080,16040,15232,15352,15216,15112,14944,14872,14992,15080,14400,14392,14512,14536,14752,14808,14672,14632,13056,13176,13296,13192,13024,12952,12816,12904,12480,12472,12336,12360,12576,12632,12752,12712,13440,13560,13424,13320,13664,13592,13712,13800,14144,14136,14256,14280,13984,14040,13904,13864,8704,8824,8944,8840,9184,9112,8976,9064,8640,8632,8496,8520,8224,8280,8400,8360,9600,9720,9584,9480,9312,9240,9360,9448,9792,9784,9904,9928,10144,10200,10064,10024,11520,11640,11760,11656,11488,11416,11280,11368,11968,11960,11824,11848,12064,12120,12240,12200,10880,11000,10864,10760,11104,11032,11152,11240,10560,10552,10672,10696,10400,10456,10320,10280},{0,121,242,139,484,413,278,367,968,945,826,835,556,597,734,679,1936,2025,1890,1819,1652,1549,1670,1791,1112,1057,1194,1235,1468,1477,1358,1335,3872,3929,4050,4011,3780,3773,3638,3663,3304,3217,3098,3171,3340,3445,3582,3463,2224,2249,2114,2107,2388,2349,2470,2527,2936,2817,2954,3059,2716,2789,2670,2583,7744,7737,7858,7883,8100,8157,8022,7983,7560,7665,7546,7427,7276,7189,7326,7399,6608,6569,6434,6491,6196,6221,6342,6335,6680,6753,6890,6803,7164,7045,6926,7031,4448,4377,4498,4587,4228,4349,4214,4111,4776,4817,4698,4643,4940,4917,5054,5063,5872,5769,5634,5755,5908,5997,6118,6047,5432,5441,5578,5555,5340,5285,5166,5207,15488,15609,15474,15371,15716,15645,15766,15855,16200,16177,16314,16323,16044,16085,15966,15911,15120,15209,15330,15259,15092,14989,14854,14975,14552,14497,14378,14419,14652,14661,14798,14775,13216,13273,13138,13099,12868,12861,12982,13007,12392,12305,12442,12515,12684,12789,12670,12551,13360,13385,13506,13499,13780,13741,13606,13663,14328,14209,14090,14195,13852,13925,14062,13975,8896,8889,8754,8779,8996,9053,9174,9135,8456,8561,8698,8579,8428,8341,8222,8295,9552,9513,9634,9691,9396,9421,9286,9279,9880,9953,9834,9747,10108,9989,10126,10231,11744,11673,11538,11627,11268,11389,11510,11407,11816,11857,11994,11939,12236,12213,12094,12103,10864,10761,10882,11003,11156,11245,11110,11039,10680,10689,10570,10547,10332,10277,10414,10455},{0,122,244,142,488,402,284,358,976,938,804,862,568,578,716,694,1952,2010,1876,1838,1608,1586,1724,1734,1136,1034,1156,1278,1432,1506,1388,1302,3904,3898,4020,4046,3752,3794,3676,3622,3216,3306,3172,3102,3448,3330,3468,3574,2272,2202,2068,2158,2312,2418,2556,2438,2864,2890,3012,3006,2776,2722,2604,2646,7808,7930,7796,7694,8040,7954,8092,8166,7504,7466,7588,7646,7352,7362,7244,7222,6432,6490,6612,6574,6344,6322,6204,6214,6896,6794,6660,6782,6936,7010,7148,7062,4544,4538,4404,4430,4136,4178,4316,4262,4624,4714,4836,4766,5112,4994,4876,4982,5728,5658,5780,5870,6024,6130,6012,5894,5552,5578,5444,5438,5208,5154,5292,5334,15616,15738,15860,15758,15592,15506,15388,15462,16080,16042,15908,15966,16184,16194,16332,16310,15008,15066,14932,14894,15176,15154,15292,15302,14704,14602,14724,14846,14488,14562,14444,14358,12864,12858,12980,13006,13224,13266,13148,13094,12688,12778,12644,12574,12408,12290,12428,12534,13792,13722,13588,13678,13320,13426,13564,13446,13872,13898,14020,14014,14296,14242,14124,14166,9088,9210,9076,8974,8808,8722,8860,8934,8272,8234,8356,8414,8632,8642,8524,8502,9248,9306,9428,9390,9672,9650,9532,9542,10224,10122,9988,10110,9752,9826,9964,9878,11456,11450,11316,11342,11560,11602,11740,11686,12048,12138,12260,12190,12024,11906,11788,11894,11104,11034,11156,11246,10888,10994,10876,10758,10416,10442,10308,10302,10584,10530,10668,10710},{0,123,246,141,492,407,282,353,984,931,814,853,564,591,706,697,1968,1995,1862,1853,1628,1575,1706,1745,1128,1043,1182,1253,1412,1535,1394,1289,3936,3867,3990,4077,3724,3831,3706,3585,3256,3267,3150,3125,3412,3375,3490,3545,2256,2219,2086,2141,2364,2375,2506,2481,2824,2931,3070,2949,2788,2719,2578,2665,7872,7867,7734,7757,7980,8023,8154,8097,7448,7523,7662,7573,7412,7311,7170,7289,6512,6411,6534,6653,6300,6375,6250,6161,6824,6867,6750,6693,6980,6975,7090,7113,4512,4571,4438,4397,4172,4151,4282,4289,4728,4611,4750,4853,5012,5103,4962,4889,5648,5739,5862,5789,6140,6023,5898,6001,5576,5555,5438,5445,5156,5215,5330,5289,15744,15867,15734,15629,15468,15383,15514,15585,15960,15907,16046,16085,16308,16335,16194,16185,14896,14923,15046,15037,15324,15271,15146,15185,14824,14739,14622,14693,14340,14463,14578,14473,13024,12955,12822,12909,13068,13175,13306,13185,12600,12611,12750,12725,12500,12463,12322,12377,13648,13611,13734,13789,13500,13511,13386,13361,13960,14067,13950,13829,14180,14111,14226,14313,9024,9019,9142,9165,8876,8919,8794,8737,8344,8419,8302,8213,8564,8463,8578,8697,9456,9355,9222,9341,9500,9575,9706,9617,10024,10067,10206,10149,9924,9919,9778,9801,11296,11355,11478,11437,11724,11703,11578,11585,12280,12163,12046,12149,11796,11887,12002,11929,11152,11243,11110,11037,10876,10759,10890,10993,10312,10291,10430,10437,10660,10719,10578,10537},{0,124,248,132,496,396,264,372,992,924,792,868,528,620,744,660,1984,1980,1848,1860,1584,1612,1736,1716,1056,1116,1240,1188,1488,1452,1320,1364,3968,4092,3960,3844,3696,3596,3720,3828,3168,3100,3224,3300,3472,3564,3432,3348,2112,2108,2232,2244,2480,2508,2376,2356,2976,3036,2904,2852,2640,2604,2728,2772,7936,8060,8184,8068,7920,7820,7688,7796,7392,7324,7192,7268,7440,7532,7656,7572,6336,6332,6200,6212,6448,6476,6600,6580,6944,7004,7128,7076,6864,6828,6696,6740,4224,4348,4216,4100,4464,4364,4488,4596,4960,4892,5016,5092,4752,4844,4712,4628,5952,5948,6072,6084,5808,5836,5704,5684,5280,5340,5208,5156,5456,5420,5544,5588,15872,15996,16120,16004,16368,16268,16136,16244,15840,15772,15640,15716,15376,15468,15592,15508,14784,14780,14648,14660,14384,14412,14536,14516,14880,14940,15064,15012,15312,15276,15144,15188,12672,12796,12664,12548,12400,12300,12424,12532,12896,12828,12952,13028,13200,13292,13160,13076,13888,13884,14008,14020,14256,14284,14152,14132,13728,13788,13656,13604,13392,13356,13480,13524,8448,8572,8696,8580,8432,8332,8200,8308,8928,8860,8728,8804,8976,9068,9192,9108,9920,9916,9784,9796,10032,10060,10184,10164,9504,9564,9688,9636,9424,9388,9256,9300,11904,12028,11896,11780,12144,12044,12168,12276,11616,11548,11672,11748,11408,11500,11368,11284,10560,10556,10680,10692,10416,10444,10312,10292,10912,10972,10840,10788,11088,11052,11176,11220},{0,125,250,135,500,393,270,371,1000,917,786,879,540,609,742,667,2000,1965,1834,1879,1572,1625,1758,1699,1080,1093,1218,1215,1484,1457,1334,1355,4000,4061,3930,3879,3668,3625,3758,3795,3144,3125,3250,3279,3516,3521,3398,3387,2160,2061,2186,2295,2436,2553,2430,2307,2968,3045,2914,2847,2668,2577,2710,2795,8000,7997,8122,8135,7860,7881,7758,7731,7336,7381,7250,7215,7516,7457,7590,7643,6288,6381,6250,6167,6500,6425,6558,6627,7032,6917,7042,7167,6796,6897,6774,6667,4320,4253,4122,4199,4372,4457,4590,4499,4872,4981,5106,5007,4860,4737,4614,4731,5936,5965,6090,6071,5828,5817,5694,5699,5336,5285,5154,5215,5420,5457,5590,5547,16000,16125,15994,15879,16244,16137,16270,16371,15720,15637,15762,15855,15516,15585,15462,15387,14672,14637,14762,14807,14500,14553,14430,14371,15032,15045,14914,14911,15180,15153,15286,15307,12576,12637,12762,12711,12500,12457,12334,12371,13000,12981,12850,12879,13116,13121,13254,13243,14064,13965,13834,13943,14084,14201,14334,14211,13592,13669,13794,13727,13548,13457,13334,13419,8640,8637,8506,8519,8244,8265,8398,8371,8744,8789,8914,8879,9180,9121,8998,9051,9744,9837,9962,9879,10212,10137,10014,10083,9720,9605,9474,9599,9228,9329,9462,9355,11872,11805,11930,12007,12180,12265,12142,12051,11656,11765,11634,11535,11388,11265,11398,11515,10672,10701,10570,10551,10308,10297,10430,10435,10840,10789,10914,10975,11180,11217,11094,11051},{0,126,252,130,504,390,260,378,1008,910,780,882,520,630,756,650,2016,1950,1820,1890,1560,1638,1764,1690,1040,1134,1260,1170,1512,1430,1300,1386,4032,4030,3900,3906,3640,3654,3780,3770,3120,3150,3276,3250,3528,3510,3380,3402,2080,2142,2268,2210,2520,2470,2340,2394,3024,2990,2860,2898,2600,2646,2772,2730,8064,8190,8060,7938,7800,7686,7812,7930,7280,7182,7308,7410,7560,7670,7540,7434,6240,6174,6300,6370,6552,6630,6500,6426,7056,7150,7020,6930,6760,6678,6804,6890,4160,4158,4284,4290,4536,4550,4420,4410,5040,5070,4940,4914,4680,4662,4788,4810,6048,6110,5980,5922,5720,5670,5796,5850,5200,5166,5292,5330,5544,5590,5460,5418,16128,16254,16380,16258,16120,16006,15876,15994,15600,15502,15372,15474,15624,15734,15860,15754,14560,14494,14364,14434,14616,14694,14820,14746,15120,15214,15340,15250,15080,14998,14868,14954,12480,12478,12348,12354,12600,12614,12740,12730,13104,13134,13260,13234,13000,12982,12852,12874,14112,14174,14300,14242,14040,13990,13860,13914,13520,13486,13356,13394,13608,13654,13780,13738,8320,8446,8316,8194,8568,8454,8580,8698,9072,8974,9100,9202,8840,8950,8820,8714,10080,10014,10140,10210,9880,9958,9828,9754,9360,9454,9324,9234,9576,9494,9620,9706,12096,12094,12220,12226,11960,11974,11844,11834,11440,11470,11340,11314,11592,11574,11700,11722,10400,10462,10332,10274,10584,10534,10660,10714,11088,11054,11180,11218,10920,10966,10836,10794},{0,127,254,129,508,387,258,381,1016,903,774,889,516,635,762,645,2032,1935,1806,1905,1548,1651,1778,1677,1032,1143,1270,1161,1524,1419,1290,1397,4064,3999,3870,3937,3612,3683,3810,3741,3096,3175,3302,3225,3556,3483,3354,3429,2064,2159,2286,2193,2540,2451,2322,2413,3048,2967,2838,2921,2580,2667,2794,2709,8128,8127,7998,8001,7740,7747,7874,7869,7224,7239,7366,7353,7620,7611,7482,7493,6192,6223,6350,6321,6604,6579,6450,6477,7112,7095,6966,6985,6708,6731,6858,6837,4128,4191,4318,4257,4572,4515,4386,4445,5080,5031,4902,4953,4644,4699,4826,4773,6096,6063,5934,5969,5676,5715,5842,5805,5160,5207,5334,5289,5588,5547,5418,5461,16256,16383,16254,16129,15996,15875,16002,16125,15480,15367,15494,15609,15748,15867,15738,15621,14448,14351,14478,14577,14732,14835,14706,14605,15240,15351,15222,15113,14964,14859,14986,15093,12384,12319,12446,12513,12700,12771,12642,12573,13208,13287,13158,13081,12900,12827,12954,13029,14224,14319,14190,14097,13932,13843,13970,14061,13416,13335,13462,13545,13716,13803,13674,13589,8256,8255,8382,8385,8636,8643,8514,8509,9144,9159,9030,9017,8772,8763,8890,8901,10160,10191,10062,10033,9804,9779,9906,9933,9288,9271,9398,9417,9652,9675,9546,9525,12192,12255,12126,12065,11868,11811,11938,11997,11352,11303,11430,11481,11684,11739,11610,11557,10320,10287,10414,10449,10668,10707,10578,10541,11176,11223,11094,11049,10836,10795,10922,10965},{0,128,256,384,512,640,768,896,1024,1152,1280,1408,1536,1664,1792,1920,2048,2176,2304,2432,2560,2688,2816,2944,3072,3200,3328,3456,3584,3712,3840,3968,4096,4224,4352,4480,4608,4736,4864,4992,5120,5248,5376,5504,5632,5760,5888,6016,6144,6272,6400,6528,6656,6784,6912,7040,7168,7296,7424,7552,7680,7808,7936,8064,8192,8320,8448,8576,8704,8832,8960,9088,9216,9344,9472,9600,9728,9856,9984,10112,10240,10368,10496,10624,10752,10880,11008,11136,11264,11392,11520,11648,11776,11904,12032,12160,12288,12416,12544,12672,12800,12928,13056,13184,13312,13440,13568,13696,13824,13952,14080,14208,14336,14464,14592,14720,14848,14976,15104,15232,15360,15488,15616,15744,15872,16000,16128,16256,16384,16512,16640,16768,16896,17024,17152,17280,17408,17536,17664,17792,17920,18048,18176,18304,18432,18560,18688,18816,18944,19072,19200,19328,19456,19584,19712,19840,19968,20096,20224,20352,20480,20608,20736,20864,20992,21120,21248,21376,21504,21632,21760,21888,22016,22144,22272,22400,22528,22656,22784,22912,23040,23168,23296,23424,23552,23680,23808,23936,24064,24192,24320,24448,24576,24704,24832,24960,25088,25216,25344,25472,25600,25728,25856,25984,26112,26240,26368,26496,26624,26752,26880,27008,27136,27264,27392,27520,27648,27776,27904,28032,28160,28288,28416,28544,28672,28800,28928,29056,29184,29312,29440,29568,29696,29824,29952,30080,30208,30336,30464,30592,30720,30848,30976,31104,31232,31360,31488,31616,31744,31872,32000,32128,32256,32384,32512,32640},{0,129,258,387,516,645,774,903,1032,1161,1290,1419,1548,1677,1806,1935,2064,2193,2322,2451,2580,2709,2838,2967,3096,3225,3354,3483,3612,3741,3870,3999,4128,4257,4386,4515,4644,4773,4902,5031,5160,5289,5418,5547,5676,5805,5934,6063,6192,6321,6450,6579,6708,6837,6966,7095,7224,7353,7482,7611,7740,7869,7998,8127,8256,8385,8514,8643,8772,8901,9030,9159,9288,9417,9546,9675,9804,9933,10062,10191,10320,10449,10578,10707,10836,10965,11094,11223,11352,11481,11610,11739,11868,11997,12126,12255,12384,12513,12642,12771,12900,13029,13158,13287,13416,13545,13674,13803,13932,14061,14190,14319,14448,14577,14706,14835,14964,15093,15222,15351,15480,15609,15738,15867,15996,16125,16254,16383,16512,16385,16770,16643,17028,16901,17286,17159,17544,17417,17802,17675,18060,17933,18318,18191,18576,18449,18834,18707,19092,18965,19350,19223,19608,19481,19866,19739,20124,19997,20382,20255,20640,20513,20898,20771,21156,21029,21414,21287,21672,21545,21930,21803,22188,22061,22446,22319,22704,22577,22962,22835,23220,23093,23478,23351,23736,23609,23994,23867,24252,24125,24510,24383,24768,24641,25026,24899,25284,25157,25542,25415,25800,25673,26058,25931,26316,26189,26574,26447,26832,26705,27090,26963,27348,27221,27606,27479,27864,27737,28122,27995,28380,28253,28638,28511,28896,28769,29154,29027,29412,29285,29670,29543,29928,29801,30186,30059,30444,30317,30702,30575,30960,30833,31218,31091,31476,31349,31734,31607,31992,31865,32250,32123,32508,32381,32766,32639},{0,130,260,390,520,650,780,910,1040,1170,1300,1430,1560,1690,1820,1950,2080,2210,2340,2470,2600,2730,2860,2990,3120,3250,3380,3510,3640,3770,3900,4030,4160,4290,4420,4550,4680,4810,4940,5070,5200,5330,5460,5590,5720,5850,5980,6110,6240,6370,6500,6630,6760,6890,7020,7150,7280,7410,7540,7670,7800,7930,8060,8190,8320,8194,8580,8454,8840,8714,9100,8974,9360,9234,9620,9494,9880,9754,10140,10014,10400,10274,10660,10534,10920,10794,11180,11054,11440,11314,11700,11574,11960,11834,12220,12094,12480,12354,12740,12614,13000,12874,13260,13134,13520,13394,13780,13654,14040,13914,14300,14174,14560,14434,14820,14694,15080,14954,15340,15214,15600,15474,15860,15734,16120,15994,16380,16254,16640,16770,16388,16518,17160,17290,16908,17038,17680,17810,17428,17558,18200,18330,17948,18078,18720,18850,18468,18598,19240,19370,18988,19118,19760,19890,19508,19638,20280,20410,20028,20158,20800,20930,20548,20678,21320,21450,21068,21198,21840,21970,21588,21718,22360,22490,22108,22238,22880,23010,22628,22758,23400,23530,23148,23278,23920,24050,23668,23798,24440,24570,24188,24318,24960,24834,24708,24582,25480,25354,25228,25102,26000,25874,25748,25622,26520,26394,26268,26142,27040,26914,26788,26662,27560,27434,27308,27182,28080,27954,27828,27702,28600,28474,28348,28222,29120,28994,28868,28742,29640,29514,29388,29262,30160,30034,29908,29782,30680,30554,30428,30302,31200,31074,30948,30822,31720,31594,31468,31342,32240,32114,31988,31862,32760,32634,32508,32382},{0,131,262,389,524,655,778,905,1048,1179,1310,1437,1556,1687,1810,1937,2096,2227,2358,2485,2620,2751,2874,3001,3112,3243,3374,3501,3620,3751,3874,4001,4192,4323,4454,4581,4716,4847,4970,5097,5240,5371,5502,5629,5748,5879,6002,6129,6224,6355,6486,6613,6748,6879,7002,7129,7240,7371,7502,7629,7748,7879,8002,8129,8384,8259,8646,8517,8908,8783,9162,9033,9432,9307,9694,9565,9940,9815,10194,10065,10480,10355,10742,10613,11004,10879,11258,11129,11496,11371,11758,11629,12004,11879,12258,12129,12448,12323,12710,12581,12972,12847,13226,13097,13496,13371,13758,13629,14004,13879,14258,14129,14480,14355,14742,14613,15004,14879,15258,15129,15496,15371,15758,15629,16004,15879,16258,16129,16768,16643,16518,16389,17292,17167,17034,16905,17816,17691,17566,17437,18324,18199,18066,17937,18864,18739,18614,18485,19388,19263,19130,19001,19880,19755,19630,19501,20388,20263,20130,20001,20960,20835,20710,20581,21484,21359,21226,21097,22008,21883,21758,21629,22516,22391,22258,22129,22992,22867,22742,22613,23516,23391,23258,23129,24008,23883,23758,23629,24516,24391,24258,24129,24896,25027,24646,24773,25420,25551,25162,25289,25944,26075,25694,25821,26452,26583,26194,26321,26992,27123,26742,26869,27516,27647,27258,27385,28008,28139,27758,27885,28516,28647,28258,28385,28960,29091,28710,28837,29484,29615,29226,29353,30008,30139,29758,29885,30516,30647,30258,30385,30992,31123,30742,30869,31516,31647,31258,31385,32008,32139,31758,31885,32516,32647,32258,32385},{0,132,264,396,528,660,792,924,1056,1188,1320,1452,1584,1716,1848,1980,2112,2244,2376,2508,2640,2772,2904,3036,3168,3300,3432,3564,3696,3828,3960,4092,4224,4100,4488,4364,4752,4628,5016,4892,5280,5156,5544,5420,5808,5684,6072,5948,6336,6212,6600,6476,6864,6740,7128,7004,7392,7268,7656,7532,7920,7796,8184,8060,8448,8580,8200,8332,8976,9108,8728,8860,9504,9636,9256,9388,10032,10164,9784,9916,10560,10692,10312,10444,11088,11220,10840,10972,11616,11748,11368,11500,12144,12276,11896,12028,12672,12548,12424,12300,13200,13076,12952,12828,13728,13604,13480,13356,14256,14132,14008,13884,14784,14660,14536,14412,15312,15188,15064,14940,15840,15716,15592,15468,16368,16244,16120,15996,16896,17028,17160,17292,16400,16532,16664,16796,17952,18084,18216,18348,17456,17588,17720,17852,19008,19140,19272,19404,18512,18644,18776,18908,20064,20196,20328,20460,19568,19700,19832,19964,21120,20996,21384,21260,20624,20500,20888,20764,22176,22052,22440,22316,21680,21556,21944,21820,23232,23108,23496,23372,22736,22612,23000,22876,24288,24164,24552,24428,23792,23668,24056,23932,25344,25476,25096,25228,24848,24980,24600,24732,26400,26532,26152,26284,25904,26036,25656,25788,27456,27588,27208,27340,26960,27092,26712,26844,28512,28644,28264,28396,28016,28148,27768,27900,29568,29444,29320,29196,29072,28948,28824,28700,30624,30500,30376,30252,30128,30004,29880,29756,31680,31556,31432,31308,31184,31060,30936,30812,32736,32612,32488,32364,32240,32116,31992,31868},{0,133,266,399,532,657,798,923,1064,1197,1314,1447,1596,1721,1846,1971,2128,2261,2394,2527,2628,2753,2894,3019,3192,3325,3442,3575,3692,3817,3942,4067,4256,4133,4522,4399,4788,4657,5054,4923,5256,5133,5506,5383,5788,5657,6038,5907,6384,6261,6650,6527,6884,6753,7150,7019,7384,7261,7634,7511,7884,7753,8134,8003,8512,8645,8266,8399,9044,9169,8798,8923,9576,9709,9314,9447,10108,10233,9846,9971,10512,10645,10266,10399,11012,11137,10766,10891,11576,11709,11314,11447,12076,12201,11814,11939,12768,12645,12522,12399,13300,13169,13054,12923,13768,13645,13506,13383,14300,14169,14038,13907,14768,14645,14522,14399,15268,15137,15022,14891,15768,15645,15506,15383,16268,16137,16006,15875,17024,16901,17290,17167,16532,16401,16798,16667,18088,17965,18338,18215,17596,17465,17846,17715,19152,19029,19418,19295,18628,18497,18894,18763,20216,20093,20466,20343,19692,19561,19942,19811,21024,21157,21290,21423,20532,20657,20798,20923,22024,22157,22274,22407,21532,21657,21782,21907,23152,23285,23418,23551,22628,22753,22894,23019,24152,24285,24402,24535,23628,23753,23878,24003,25536,25413,25290,25167,25044,24913,24798,24667,26600,26477,26338,26215,26108,25977,25846,25715,27536,27413,27290,27167,27012,26881,26766,26635,28600,28477,28338,28215,28076,27945,27814,27683,29536,29669,29290,29423,29044,29169,28798,28923,30536,30669,30274,30407,30044,30169,29782,29907,31536,31669,31290,31423,31012,31137,30766,30891,32536,32669,32274,32407,32012,32137,31750,31875},{0,134,268,394,536,670,788,914,1072,1206,1340,1466,1576,1710,1828,1954,2144,2278,2412,2538,2680,2814,2932,3058,3152,3286,3420,3546,3656,3790,3908,4034,4288,4166,4556,4426,4824,4702,5076,4946,5360,5238,5628,5498,5864,5742,6116,5986,6304,6182,6572,6442,6840,6718,7092,6962,7312,7190,7580,7450,7816,7694,8068,7938,8576,8454,8332,8202,9112,8990,8852,8722,9648,9526,9404,9274,10152,10030,9892,9762,10720,10598,10476,10346,11256,11134,10996,10866,11728,11606,11484,11354,12232,12110,11972,11842,12608,12742,12364,12490,13144,13278,12884,13010,13680,13814,13436,13562,14184,14318,13924,14050,14624,14758,14380,14506,15160,15294,14900,15026,15632,15766,15388,15514,16136,16270,15876,16002,17152,17286,16908,17034,16664,16798,16404,16530,18224,18358,17980,18106,17704,17838,17444,17570,19296,19430,19052,19178,18808,18942,18548,18674,20304,20438,20060,20186,19784,19918,19524,19650,21440,21318,21196,21066,20952,20830,20692,20562,22512,22390,22268,22138,21992,21870,21732,21602,23456,23334,23212,23082,22968,22846,22708,22578,24464,24342,24220,24090,23944,23822,23684,23554,25216,25094,25484,25354,24728,24606,24980,24850,26288,26166,26556,26426,25768,25646,26020,25890,27360,27238,27628,27498,26872,26750,27124,26994,28368,28246,28636,28506,27848,27726,28100,27970,29248,29382,29516,29642,28760,28894,29012,29138,30320,30454,30588,30714,29800,29934,30052,30178,31264,31398,31532,31658,30776,30910,31028,31154,32272,32406,32540,32666,31752,31886,32004,32130},{0,135,270,393,540,667,786,917,1080,1215,1334,1457,1572,1699,1834,1965,2160,2295,2430,2553,2668,2795,2914,3045,3144,3279,3398,3521,3668,3795,3930,4061,4320,4199,4590,4457,4860,4731,5106,4981,5336,5215,5590,5457,5828,5699,6090,5965,6288,6167,6558,6425,6796,6667,7042,6917,7336,7215,7590,7457,7860,7731,8122,7997,8640,8519,8398,8265,9180,9051,8914,8789,9720,9599,9462,9329,10212,10083,9962,9837,10672,10551,10430,10297,11180,11051,10914,10789,11656,11535,11398,11265,12180,12051,11930,11805,12576,12711,12334,12457,13116,13243,12850,12981,13592,13727,13334,13457,14084,14211,13834,13965,14672,14807,14430,14553,15180,15307,14914,15045,15720,15855,15462,15585,16244,16371,15994,16125,17280,17159,17038,16905,16796,16667,16530,16405,18360,18239,18102,17969,17828,17699,17578,17453,19440,19319,19198,19065,18924,18795,18658,18533,20424,20303,20166,20033,19924,19795,19674,19549,21344,21479,21102,21225,20860,20987,20594,20725,22360,22495,22102,22225,21828,21955,21578,21709,23312,23447,23070,23193,22796,22923,22530,22661,24360,24495,24102,24225,23860,23987,23610,23741,25152,25287,25422,25545,24668,24795,24914,25045,26232,26367,26486,26609,25700,25827,25962,26093,27184,27319,27454,27577,26668,26795,26914,27045,28168,28303,28422,28545,27668,27795,27930,28061,29344,29223,29614,29481,28860,28731,29106,28981,30360,30239,30614,30481,29828,29699,30090,29965,31440,31319,31710,31577,30924,30795,31170,31045,32488,32367,32742,32609,31988,31859,32250,32125},{0,136,272,408,544,680,816,952,1088,1224,1360,1496,1632,1768,1904,2040,2176,2056,2448,2328,2720,2600,2992,2872,3264,3144,3536,3416,3808,3688,4080,3960,4352,4488,4112,4248,4896,5032,4656,4792,5440,5576,5200,5336,5984,6120,5744,5880,6528,6408,6288,6168,7072,6952,6832,6712,7616,7496,7376,7256,8160,8040,7920,7800,8704,8840,8976,9112,8224,8360,8496,8632,9792,9928,10064,10200,9312,9448,9584,9720,10880,10760,11152,11032,10400,10280,10672,10552,11968,11848,12240,12120,11488,11368,11760,11640,13056,13192,12816,12952,12576,12712,12336,12472,14144,14280,13904,14040,13664,13800,13424,13560,15232,15112,14992,14872,14752,14632,14512,14392,16320,16200,16080,15960,15840,15720,15600,15480,17408,17544,17680,17816,17952,18088,18224,18360,16448,16584,16720,16856,16992,17128,17264,17400,19584,19464,19856,19736,20128,20008,20400,20280,18624,18504,18896,18776,19168,19048,19440,19320,21760,21896,21520,21656,22304,22440,22064,22200,20800,20936,20560,20696,21344,21480,21104,21240,23936,23816,23696,23576,24480,24360,24240,24120,22976,22856,22736,22616,23520,23400,23280,23160,26112,26248,26384,26520,25632,25768,25904,26040,25152,25288,25424,25560,24672,24808,24944,25080,28288,28168,28560,28440,27808,27688,28080,27960,27328,27208,27600,27480,26848,26728,27120,27000,30464,30600,30224,30360,29984,30120,29744,29880,29504,29640,29264,29400,29024,29160,28784,28920,32640,32520,32400,32280,32160,32040,31920,31800,31680,31560,31440,31320,31200,31080,30960,30840},{0,137,274,411,548,685,822,959,1096,1217,1370,1491,1644,1765,1918,2039,2192,2073,2434,2315,2740,2621,2982,2863,3288,3153,3530,3395,3836,3701,4078,3943,4384,4521,4146,4283,4868,5005,4630,4767,5480,5601,5242,5363,5964,6085,5726,5847,6576,6457,6306,6187,7060,6941,6790,6671,7672,7537,7402,7267,8156,8021,7886,7751,8768,8905,9042,9179,8292,8429,8566,8703,9736,9857,10010,10131,9260,9381,9534,9655,10960,10841,11202,11083,10484,10365,10726,10607,11928,11793,12170,12035,11452,11317,11694,11559,13152,13289,12914,13051,12612,12749,12374,12511,14120,14241,13882,14003,13580,13701,13342,13463,15344,15225,15074,14955,14804,14685,14534,14415,16312,16177,16042,15907,15772,15637,15502,15367,17536,17417,17810,17691,18084,17965,18358,18239,16584,16449,16858,16723,17132,16997,17406,17271,19472,19609,19714,19851,20020,20157,20262,20399,18520,18641,18762,18883,19068,19189,19310,19431,21920,21801,21682,21563,22404,22285,22166,22047,20968,20833,20730,20595,21452,21317,21214,21079,23856,23993,23586,23723,24340,24477,24070,24207,22904,23025,22634,22755,23388,23509,23118,23239,26304,26185,26578,26459,25828,25709,26102,25983,25224,25089,25498,25363,24748,24613,25022,24887,28240,28377,28482,28619,27764,27901,28006,28143,27160,27281,27402,27523,26684,26805,26926,27047,30688,30569,30450,30331,30148,30029,29910,29791,29608,29473,29370,29235,29068,28933,28830,28695,32624,32761,32354,32491,32084,32221,31814,31951,31544,31665,31274,31395,31004,31125,30734,30855},{0,138,276,414,552,674,828,950,1104,1242,1348,1486,1656,1778,1900,2022,2208,2090,2484,2366,2696,2562,2972,2838,3312,3194,3556,3438,3800,3666,4044,3910,4416,4554,4180,4318,4968,5090,4732,4854,5392,5530,5124,5262,5944,6066,5676,5798,6624,6506,6388,6270,7112,6978,6876,6742,7600,7482,7332,7214,8088,7954,7820,7686,8832,8714,9108,8990,8360,8226,8636,8502,9936,9818,10180,10062,9464,9330,9708,9574,10784,10922,11060,11198,10248,10370,10524,10646,11888,12026,12132,12270,11352,11474,11596,11718,13248,13130,13012,12894,12776,12642,12540,12406,14224,14106,13956,13838,13752,13618,13484,13350,15200,15338,14964,15102,14664,14786,14428,14550,16176,16314,15908,16046,15640,15762,15372,15494,17664,17802,17428,17566,18216,18338,17980,18102,16720,16858,16452,16590,17272,17394,17004,17126,19872,19754,19636,19518,20360,20226,20124,19990,18928,18810,18660,18542,19416,19282,19148,19014,21568,21706,21844,21982,22120,22242,22396,22518,20496,20634,20740,20878,21048,21170,21292,21414,23776,23658,24052,23934,24264,24130,24540,24406,22704,22586,22948,22830,23192,23058,23436,23302,26496,26378,26260,26142,26024,25890,25788,25654,25552,25434,25284,25166,25080,24946,24812,24678,28448,28586,28212,28350,27912,28034,27676,27798,27504,27642,27236,27374,26968,27090,26700,26822,30400,30282,30676,30558,29928,29794,30204,30070,29328,29210,29572,29454,28856,28722,29100,28966,32352,32490,32628,32766,31816,31938,32092,32214,31280,31418,31524,31662,30744,30866,30988,31110},{0,139,278,413,556,679,826,945,1112,1235,1358,1477,1652,1791,1890,2025,2224,2107,2470,2349,2716,2583,2954,2817,3304,3171,3582,3445,3780,3663,4050,3929,4448,4587,4214,4349,4940,5063,4698,4817,5432,5555,5166,5285,5908,6047,5634,5769,6608,6491,6342,6221,7164,7031,6890,6753,7560,7427,7326,7189,8100,7983,7858,7737,8896,8779,9174,9053,8428,8295,8698,8561,9880,9747,10126,9989,9396,9279,9634,9513,10864,11003,11110,11245,10332,10455,10570,10689,11816,11939,12094,12213,11268,11407,11538,11673,13216,13099,12982,12861,12684,12551,12442,12305,14328,14195,14062,13925,13780,13663,13506,13385,15120,15259,14854,14989,14652,14775,14378,14497,16200,16323,15966,16085,15716,15855,15474,15609,17792,17675,17558,17437,18348,18215,18106,17969,16856,16723,16590,16453,17396,17279,17122,17001,19760,19899,19494,19629,20252,20375,19978,20097,18792,18915,18558,18677,19268,19407,19026,19161,21728,21611,22006,21885,22220,22087,22490,22353,20664,20531,20910,20773,21140,21023,21378,21257,23632,23771,23878,24013,24188,24311,24426,24545,22536,22659,22814,22933,23076,23215,23346,23481,26432,26571,26198,26333,25964,26087,25722,25841,25368,25491,25102,25221,24884,25023,24610,24745,28656,28539,28390,28269,28124,27991,27850,27713,27560,27427,27326,27189,27012,26895,26770,26649,30240,30379,30518,30653,29708,29831,29978,30097,29304,29427,29550,29669,28756,28895,28994,29129,32400,32283,32646,32525,31932,31799,32170,32033,31432,31299,31710,31573,30948,30831,31218,31097},{0,140,280,404,560,700,808,932,1120,1260,1400,1524,1616,1756,1864,1988,2240,2124,2520,2388,2800,2684,3048,2916,3232,3116,3512,3380,3728,3612,3976,3844,4480,4364,4248,4116,5040,4924,4776,4644,5600,5484,5368,5236,6096,5980,5832,5700,6464,6604,6232,6356,7024,7164,6760,6884,7456,7596,7224,7348,7952,8092,7688,7812,8960,9100,8728,8852,8496,8636,8232,8356,10080,10220,9848,9972,9552,9692,9288,9412,11200,11084,10968,10836,10736,10620,10472,10340,12192,12076,11960,11828,11664,11548,11400,11268,12928,12812,13208,13076,12464,12348,12712,12580,14048,13932,14328,14196,13520,13404,13768,13636,14912,15052,15192,15316,14448,14588,14696,14820,15904,16044,16184,16308,15376,15516,15624,15748,17920,18060,18200,18324,17456,17596,17704,17828,16992,17132,17272,17396,16464,16604,16712,16836,20160,20044,20440,20308,19696,19580,19944,19812,19104,18988,19384,19252,18576,18460,18824,18692,22400,22284,22168,22036,21936,21820,21672,21540,21472,21356,21240,21108,20944,20828,20680,20548,24384,24524,24152,24276,23920,24060,23656,23780,23328,23468,23096,23220,22800,22940,22536,22660,25856,25996,25624,25748,26416,26556,26152,26276,24928,25068,24696,24820,25424,25564,25160,25284,28096,27980,27864,27732,28656,28540,28392,28260,27040,26924,26808,26676,27536,27420,27272,27140,29824,29708,30104,29972,30384,30268,30632,30500,28896,28780,29176,29044,29392,29276,29640,29508,31808,31948,32088,32212,32368,32508,32616,32740,30752,30892,31032,31156,31248,31388,31496,31620},{0,141,282,407,564,697,814,931,1128,1253,1394,1535,1628,1745,1862,1995,2256,2141,2506,2375,2788,2665,3070,2931,3256,3125,3490,3375,3724,3585,3990,3867,4512,4397,4282,4151,5012,4889,4750,4611,5576,5445,5330,5215,6140,6001,5862,5739,6512,6653,6250,6375,6980,7113,6750,6867,7448,7573,7170,7311,7980,8097,7734,7867,9024,9165,8794,8919,8564,8697,8302,8419,10024,10149,9778,9919,9500,9617,9222,9355,11152,11037,10890,10759,10660,10537,10430,10291,12280,12149,12002,11887,11724,11585,11478,11355,13024,12909,13306,13175,12500,12377,12750,12611,13960,13829,14226,14111,13500,13361,13734,13611,14896,15037,15146,15271,14340,14473,14622,14739,15960,16085,16194,16335,15468,15585,15734,15867,18048,17933,18330,18199,17588,17465,17838,17699,17128,16997,17394,17279,16604,16465,16838,16715,20048,20189,20298,20423,19556,19689,19838,19955,19000,19125,19234,19375,18444,18561,18710,18843,22304,22445,22074,22199,21780,21913,21518,21635,21320,21445,21074,21215,20860,20977,20582,20715,24560,24445,24298,24167,24004,23881,23774,23635,23448,23317,23170,23055,22956,22817,22710,22587,26048,25933,25818,25687,26612,26489,26350,26211,25000,24869,24754,24639,25500,25361,25222,25099,27920,28061,27658,27783,28452,28585,28222,28339,27000,27125,26722,26863,27468,27585,27222,27355,29792,29933,30074,30199,30292,30425,30542,30659,28680,28805,28946,29087,29244,29361,29478,29611,31920,31805,32170,32039,32388,32265,32670,32531,30936,30805,31170,31055,31468,31329,31734,31611},{0,142,284,402,568,694,804,938,1136,1278,1388,1506,1608,1734,1876,2010,2272,2158,2556,2418,2776,2646,3012,2890,3216,3102,3468,3330,3752,3622,4020,3898,4544,4430,4316,4178,5112,4982,4836,4714,5552,5438,5292,5154,6024,5894,5780,5658,6432,6574,6204,6322,6936,7062,6660,6794,7504,7646,7244,7362,8040,8166,7796,7930,9088,8974,8860,8722,8632,8502,8356,8234,10224,10110,9964,9826,9672,9542,9428,9306,11104,11246,10876,10994,10584,10710,10308,10442,12048,12190,11788,11906,11560,11686,11316,11450,12864,13006,13148,13266,12408,12534,12644,12778,13872,14014,14124,14242,13320,13446,13588,13722,15008,14894,15292,15154,14488,14358,14724,14602,16080,15966,16332,16194,15592,15462,15860,15738,18176,18318,17948,18066,17720,17846,17444,17578,17264,17406,17004,17122,16712,16838,16468,16602,20448,20334,20220,20082,19928,19798,19652,19530,19344,19230,19084,18946,18856,18726,18612,18490,22208,22094,22492,22354,21752,21622,21988,21866,21168,21054,21420,21282,20616,20486,20884,20762,24096,24238,24380,24498,23576,23702,23812,23946,23120,23262,23372,23490,22632,22758,22900,23034,25728,25614,26012,25874,26296,26166,26532,26410,24816,24702,25068,24930,25288,25158,25556,25434,27744,27886,28028,28146,28248,28374,28484,28618,26640,26782,26892,27010,27176,27302,27444,27578,30016,30158,29788,29906,30584,30710,30308,30442,28976,29118,28716,28834,29448,29574,29204,29338,32160,32046,31932,31794,32664,32534,32388,32266,31184,31070,30924,30786,31720,31590,31476,31354},{0,143,286,401,572,691,802,941,1144,1271,1382,1513,1604,1739,1882,2005,2288,2175,2542,2401,2764,2627,3026,2909,3208,3079,3478,3353,3764,3643,4010,3877,4576,4463,4350,4209,5084,4947,4802,4685,5528,5399,5254,5129,6052,5931,5818,5685,6416,6559,6158,6273,6956,7075,6706,6845,7528,7655,7286,7417,8020,8155,7754,7877,9152,9039,8926,8785,8700,8563,8418,8301,10168,10039,9894,9769,9604,9483,9370,9237,11056,11199,10798,10913,10508,10627,10258,10397,12104,12231,11862,11993,11636,11771,11370,11493,12832,12975,13118,13233,12316,12435,12546,12685,13912,14039,14150,14281,13412,13547,13690,13813,15056,14943,15310,15169,14572,14435,14834,14717,16040,15911,16310,16185,15508,15387,15754,15621,18304,18191,18078,17937,17852,17715,17570,17453,17400,17271,17126,17001,16836,16715,16602,16469,20336,20479,20078,20193,19788,19907,19538,19677,19208,19335,18966,19097,18740,18875,18474,18597,22112,22255,22398,22513,21596,21715,21826,21965,21016,21143,21254,21385,20516,20651,20794,20917,24208,24095,24462,24321,23724,23587,23986,23869,23272,23143,23542,23417,22740,22619,22986,22853,25664,25807,25950,26065,26236,26355,26466,26605,24632,24759,24870,25001,25092,25227,25370,25493,27824,27711,28078,27937,28300,28163,28562,28445,26824,26695,27094,26969,27380,27259,27626,27493,30112,29999,29886,29745,30620,30483,30338,30221,29144,29015,28870,28745,29668,29547,29434,29301,32080,32223,31822,31937,32620,32739,32370,32509,31016,31143,30774,30905,31508,31643,31242,31365},{0,144,288,432,576,720,864,1008,1152,1040,1440,1328,1728,1616,2016,1904,2304,2448,2080,2224,2880,3024,2656,2800,3456,3344,3232,3120,4032,3920,3808,3696,4608,4752,4896,5040,4160,4304,4448,4592,5760,5648,6048,5936,5312,5200,5600,5488,6912,7056,6688,6832,6464,6608,6240,6384,8064,7952,7840,7728,7616,7504,7392,7280,9216,9360,9504,9648,9792,9936,10080,10224,8320,8208,8608,8496,8896,8784,9184,9072,11520,11664,11296,11440,12096,12240,11872,12016,10624,10512,10400,10288,11200,11088,10976,10864,13824,13968,14112,14256,13376,13520,13664,13808,12928,12816,13216,13104,12480,12368,12768,12656,16128,16272,15904,16048,15680,15824,15456,15600,15232,15120,15008,14896,14784,14672,14560,14448,18432,18576,18720,18864,19008,19152,19296,19440,19584,19472,19872,19760,20160,20048,20448,20336,16640,16784,16416,16560,17216,17360,16992,17136,17792,17680,17568,17456,18368,18256,18144,18032,23040,23184,23328,23472,22592,22736,22880,23024,24192,24080,24480,24368,23744,23632,24032,23920,21248,21392,21024,21168,20800,20944,20576,20720,22400,22288,22176,22064,21952,21840,21728,21616,27648,27792,27936,28080,28224,28368,28512,28656,26752,26640,27040,26928,27328,27216,27616,27504,25856,26000,25632,25776,26432,26576,26208,26352,24960,24848,24736,24624,25536,25424,25312,25200,32256,32400,32544,32688,31808,31952,32096,32240,31360,31248,31648,31536,30912,30800,31200,31088,30464,30608,30240,30384,30016,30160,29792,29936,29568,29456,29344,29232,29120,29008,28896,28784},{0,145,290,435,580,725,870,1015,1160,1049,1450,1339,1740,1629,2030,1919,2320,2433,2098,2211,2900,3013,2678,2791,3480,3337,3258,3115,4060,3917,3838,3695,4640,4785,4866,5011,4196,4341,4422,4567,5800,5689,6026,5915,5356,5245,5582,5471,6960,7073,6674,6787,6516,6629,6230,6343,8120,7977,7834,7691,7676,7533,7390,7247,9280,9425,9570,9715,9732,9877,10022,10167,8392,8281,8682,8571,8844,8733,9134,9023,11600,11713,11378,11491,12052,12165,11830,11943,10712,10569,10490,10347,11164,11021,10942,10799,13920,14065,14146,14291,13348,13493,13574,13719,13032,12921,13258,13147,12460,12349,12686,12575,16240,16353,15954,16067,15668,15781,15382,15495,15352,15209,15066,14923,14780,14637,14494,14351,18560,18449,18850,18739,19140,19029,19430,19319,19464,19609,19754,19899,20044,20189,20334,20479,16784,16641,16562,16419,17364,17221,17142,16999,17688,17801,17466,17579,18268,18381,18046,18159,23200,23089,23426,23315,22756,22645,22982,22871,24104,24249,24330,24475,23660,23805,23886,24031,21424,21281,21138,20995,20980,20837,20694,20551,22328,22441,22042,22155,21884,21997,21598,21711,27840,27729,28130,28019,28292,28181,28582,28471,26696,26841,26986,27131,27148,27293,27438,27583,26064,25921,25842,25699,26516,26373,26294,26151,24920,25033,24698,24811,25372,25485,25150,25263,32480,32369,32706,32595,31908,31797,32134,32023,31336,31481,31562,31707,30764,30909,30990,31135,30704,30561,30418,30275,30132,29989,29846,29703,29560,29673,29274,29387,28988,29101,28702,28815},{0,146,292,438,584,730,876,1022,1168,1026,1460,1318,1752,1610,2044,1902,2336,2482,2052,2198,2920,3066,2636,2782,3504,3362,3220,3078,4088,3946,3804,3662,4672,4818,4964,5110,4104,4250,4396,4542,5840,5698,6132,5990,5272,5130,5564,5422,7008,7154,6724,6870,6440,6586,6156,6302,8176,8034,7892,7750,7608,7466,7324,7182,9344,9234,9636,9526,9928,9818,10220,10110,8208,8322,8500,8614,8792,8906,9084,9198,11680,11570,11396,11286,12264,12154,11980,11870,10544,10658,10260,10374,11128,11242,10844,10958,14016,13906,14308,14198,13448,13338,13740,13630,12880,12994,13172,13286,12312,12426,12604,12718,16352,16242,16068,15958,15784,15674,15500,15390,15216,15330,14932,15046,14648,14762,14364,14478,18688,18834,18468,18614,19272,19418,19052,19198,19856,19714,19636,19494,20440,20298,20220,20078,16416,16562,16644,16790,17000,17146,17228,17374,17584,17442,17812,17670,18168,18026,18396,18254,23360,23506,23140,23286,22792,22938,22572,22718,24528,24386,24308,24166,23960,23818,23740,23598,21088,21234,21316,21462,20520,20666,20748,20894,22256,22114,22484,22342,21688,21546,21916,21774,28032,27922,27812,27702,28616,28506,28396,28286,26896,27010,26676,26790,27480,27594,27260,27374,25760,25650,25988,25878,26344,26234,26572,26462,24624,24738,24852,24966,25208,25322,25436,25550,32704,32594,32484,32374,32136,32026,31916,31806,31568,31682,31348,31462,31000,31114,30780,30894,30432,30322,30660,30550,29864,29754,30092,29982,29296,29410,29524,29638,28728,28842,28956,29070},{0,147,294,437,588,735,874,1017,1176,1035,1470,1325,1748,1607,2034,1889,2352,2467,2070,2181,2940,3055,2650,2761,3496,3387,3214,3101,4068,3959,3778,3665,4704,4851,4934,5077,4140,4287,4362,4505,5880,5739,6110,5965,5300,5159,5522,5377,6992,7107,6774,6885,6428,6543,6202,6313,8136,8027,7918,7805,7556,7447,7330,7217,9408,9299,9702,9589,9868,9759,10154,10041,8280,8395,8574,8685,8724,8839,9010,9121,11760,11619,11478,11333,12220,12079,11930,11785,10600,10747,10318,10461,11044,11191,10754,10897,13984,13875,14214,14101,13548,13439,13770,13657,12856,12971,13086,13197,12404,12519,12626,12737,16272,16131,16054,15909,15836,15695,15610,15465,15112,15259,14894,15037,14660,14807,14434,14577,18816,18707,18598,18485,19404,19295,19178,19065,19736,19851,19518,19629,20308,20423,20082,20193,16560,16419,16790,16645,17148,17007,17370,17225,17448,17595,17678,17821,18020,18167,18242,18385,23520,23411,23238,23125,22956,22847,22666,22553,24440,24555,24158,24269,23860,23975,23570,23681,21200,21059,21494,21349,20636,20495,20922,20777,22088,22235,22382,22525,21508,21655,21794,21937,27968,28115,27750,27893,28428,28575,28202,28345,27096,26955,26878,26733,27540,27399,27314,27169,25712,25827,25942,26053,26172,26287,26394,26505,24808,24699,25038,24925,25252,25143,25474,25361,32544,32691,32262,32405,32108,32255,31818,31961,31672,31531,31390,31245,31220,31079,30930,30785,30224,30339,30518,30629,29788,29903,30074,30185,29320,29211,29614,29501,28868,28759,29154,29041},{0,148,296,444,592,708,888,1004,1184,1076,1416,1308,1776,1636,2008,1868,2368,2516,2152,2300,2832,2948,2616,2732,3552,3444,3272,3164,4016,3876,3736,3596,4736,4628,5032,4924,4304,4164,4600,4460,5664,5812,5896,6044,5232,5348,5464,5580,7104,6996,6888,6780,6544,6404,6328,6188,8032,8180,7752,7900,7472,7588,7192,7308,9472,9620,9256,9404,10064,10180,9848,9964,8608,8500,8328,8220,9200,9060,8920,8780,11328,11476,11624,11772,11792,11908,12088,12204,10464,10356,10696,10588,10928,10788,11160,11020,14208,14100,13992,13884,13776,13636,13560,13420,13088,13236,12808,12956,12656,12772,12376,12492,16064,15956,16360,16252,15504,15364,15800,15660,14944,15092,15176,15324,14384,14500,14616,14732,18944,19092,19240,19388,18512,18628,18808,18924,20128,20020,20360,20252,19696,19556,19928,19788,17216,17364,17000,17148,16656,16772,16440,16556,18400,18292,18120,18012,17840,17700,17560,17420,22656,22548,22952,22844,23248,23108,23544,23404,23584,23732,23816,23964,24176,24292,24408,24524,20928,20820,20712,20604,21392,21252,21176,21036,21856,22004,21576,21724,22320,22436,22040,22156,28416,28564,28200,28348,27984,28100,27768,27884,27552,27444,27272,27164,27120,26980,26840,26700,26176,26324,26472,26620,25616,25732,25912,26028,25312,25204,25544,25436,24752,24612,24984,24844,32128,32020,31912,31804,32720,32580,32504,32364,31008,31156,30728,30876,31600,31716,31320,31436,29888,29780,30184,30076,30352,30212,30648,30508,28768,28916,29000,29148,29232,29348,29464,29580},{0,149,298,447,596,705,894,1003,1192,1085,1410,1303,1788,1641,2006,1859,2384,2501,2170,2287,2820,2961,2606,2747,3576,3437,3282,3143,4012,3897,3718,3603,4768,4661,5002,4895,4340,4193,4574,4427,5640,5789,5922,6071,5212,5321,5494,5603,7152,7013,6874,6735,6564,6449,6286,6171,8024,8141,7794,7911,7436,7577,7206,7347,9536,9685,9322,9471,10004,10113,9790,9899,8680,8573,8386,8279,9148,9001,8854,8707,11280,11397,11578,11695,11844,11985,12142,12283,10424,10285,10642,10503,10988,10873,11206,11091,14304,14197,14026,13919,13748,13601,13470,13323,13128,13277,12898,13047,12572,12681,12342,12451,16048,15909,16282,16143,15588,15473,15822,15707,14872,14989,15154,15271,14412,14553,14694,14835,19072,18965,19370,19263,18644,18497,18942,18795,20008,20157,20226,20375,19580,19689,19798,19907,17360,17221,17146,17007,16772,16657,16558,16443,18296,18413,18002,18119,17708,17849,17414,17555,22560,22709,22794,22943,23156,23265,23390,23499,23688,23581,23970,23863,24284,24137,24566,24419,20848,20965,20570,20687,21284,21425,21006,21147,21976,21837,21746,21607,22412,22297,22182,22067,28608,28501,28394,28287,28052,27905,27838,27691,27496,27645,27202,27351,26940,27049,26646,26755,26256,26117,26554,26415,25796,25681,26094,25979,25144,25261,25362,25479,24684,24825,24902,25043,32096,32245,31818,31967,32564,32673,32286,32395,31176,31069,30946,30839,31644,31497,31414,31267,29744,29861,29978,30095,30308,30449,30542,30683,28824,28685,29106,28967,29388,29273,29670,29555},{0,150,300,442,600,718,884,994,1200,1062,1436,1290,1768,1662,1988,1874,2400,2550,2124,2266,2872,2990,2580,2690,3536,3398,3324,3178,3976,3870,3748,3634,4800,4694,5100,4986,4248,4110,4532,4386,5744,5862,5980,6090,5160,5310,5380,5522,7072,6966,6796,6682,6648,6510,6356,6210,7952,8070,7740,7850,7496,7646,7268,7410,9600,9494,9388,9274,10200,10062,9972,9826,8496,8614,8220,8330,9064,9214,8772,8914,11488,11382,11724,11610,11960,11822,12180,12034,10320,10438,10620,10730,10760,10910,11044,11186,14144,14294,13932,14074,13592,13710,13364,13474,13296,13158,13020,12874,12712,12606,12420,12306,15904,16054,16140,16282,15480,15598,15700,15810,14992,14854,15292,15146,14536,14430,14820,14706,19200,19350,18988,19130,18776,18894,18548,18658,20400,20262,20124,19978,19944,19838,19652,19538,16992,17142,17228,17370,16440,16558,16660,16770,18128,17990,18428,18282,17544,17438,17828,17714,22976,22870,22764,22650,23448,23310,23220,23074,23920,24038,23644,23754,24360,24510,24068,24210,20640,20534,20876,20762,21240,21102,21460,21314,21520,21638,21820,21930,22088,22238,22372,22514,28288,28182,28588,28474,27864,27726,28148,28002,27184,27302,27420,27530,26728,26878,26948,27090,26592,26486,26316,26202,26040,25902,25748,25602,25424,25542,25212,25322,24840,24990,24612,24754,31808,31958,32108,32250,32280,32398,32564,32674,30960,30822,31196,31050,31400,31294,31620,31506,29984,30134,29708,29850,30584,30702,30292,30402,29072,28934,28860,28714,29640,29534,29412,29298},{0,151,302,441,604,715,882,997,1208,1071,1430,1281,1764,1651,1994,1885,2416,2535,2142,2249,2860,3003,2562,2709,3528,3423,3302,3185,3988,3843,3770,3629,4832,4727,5070,4953,4284,4139,4498,4357,5720,5839,6006,6113,5124,5267,5418,5565,7056,6919,6846,6697,6604,6491,6370,6261,7976,8127,7686,7825,7540,7651,7258,7373,9664,9559,9454,9337,10140,9995,9906,9765,8568,8687,8278,8385,8996,9139,8714,8861,11440,11303,11678,11529,12012,11899,12226,12117,10248,10399,10534,10673,10836,10947,11130,11245,14112,14263,13838,13977,13692,13803,13394,13509,13208,13071,12982,12833,12740,12627,12522,12413,15952,16071,16254,16361,15372,15515,15650,15797,15080,14975,15302,15185,14516,14371,14746,14605,19328,19223,19118,19001,18908,18763,18674,18533,20280,20399,19990,20097,19812,19955,19530,19677,17136,16999,17374,17225,16556,16443,16770,16661,17992,18143,18278,18417,17428,17539,17722,17837,22880,23031,22606,22745,23356,23467,23058,23173,24024,23887,23798,23649,24452,24339,24234,24125,20496,20615,20798,20905,21068,21211,21346,21493,21672,21567,21894,21777,22260,22115,22490,22349,28224,28375,28526,28665,27676,27787,27954,28069,27384,27247,27606,27457,26788,26675,27018,26909,26416,26535,26142,26249,25964,26107,25666,25813,25480,25375,25254,25137,25044,24899,24826,24685,31904,31799,32142,32025,32508,32363,32722,32581,30744,30863,31030,31137,31300,31443,31594,31741,30160,30023,29950,29801,30604,30491,30370,30261,29032,29183,28742,28881,29492,29603,29210,29325},{0,152,304,424,608,760,848,968,1216,1112,1520,1384,1696,1592,1936,1800,2432,2328,2224,2088,3040,2936,2768,2632,3392,3544,3184,3304,3872,4024,3600,3720,4864,5016,4656,4776,4448,4600,4176,4296,6080,5976,5872,5736,5536,5432,5264,5128,6784,6680,7088,6952,6368,6264,6608,6472,7744,7896,8048,8168,7200,7352,7440,7560,9728,9880,10032,10152,9312,9464,9552,9672,8896,8792,9200,9064,8352,8248,8592,8456,12160,12056,11952,11816,11744,11640,11472,11336,11072,11224,10864,10984,10528,10680,10256,10376,13568,13720,13360,13480,14176,14328,13904,14024,12736,12632,12528,12392,13216,13112,12944,12808,15488,15384,15792,15656,16096,15992,16336,16200,14400,14552,14704,14824,14880,15032,15120,15240,19456,19608,19760,19880,20064,20216,20304,20424,18624,18520,18928,18792,19104,19000,19344,19208,17792,17688,17584,17448,18400,18296,18128,17992,16704,16856,16496,16616,17184,17336,16912,17032,24320,24472,24112,24232,23904,24056,23632,23752,23488,23384,23280,23144,22944,22840,22672,22536,22144,22040,22448,22312,21728,21624,21968,21832,21056,21208,21360,21480,20512,20664,20752,20872,27136,27288,27440,27560,26720,26872,26960,27080,28352,28248,28656,28520,27808,27704,28048,27912,25472,25368,25264,25128,25056,24952,24784,24648,26432,26584,26224,26344,25888,26040,25616,25736,30976,31128,30768,30888,31584,31736,31312,31432,32192,32088,31984,31848,32672,32568,32400,32264,28800,28696,29104,28968,29408,29304,29648,29512,29760,29912,30064,30184,30240,30392,30480,30600},{0,153,306,427,612,765,854,975,1224,1105,1530,1379,1708,1589,1950,1799,2448,2313,2210,2107,3060,2925,2758,2655,3416,3521,3178,3315,3900,4005,3598,3735,4896,5049,4626,4747,4420,4573,4214,4335,6120,6001,5850,5699,5516,5397,5310,5159,6832,6697,7042,6939,6356,6221,6630,6527,7800,7905,8010,8147,7196,7301,7470,7607,9792,9945,10098,10219,9252,9405,9494,9615,8840,8721,9146,8995,8428,8309,8670,8519,12240,12105,12002,11899,11700,11565,11398,11295,11032,11137,10794,10931,10620,10725,10318,10455,13664,13817,13394,13515,14084,14237,13878,13999,12712,12593,12442,12291,13260,13141,13054,12903,15600,15465,15810,15707,16020,15885,16294,16191,14392,14497,14602,14739,14940,15045,15214,15351,19584,19481,19890,19755,20196,20093,20438,20303,18504,18641,18810,18915,18988,19125,19230,19335,17680,17801,17442,17595,18292,18413,17990,18143,16856,16705,16618,16499,17340,17189,17038,16919,24480,24377,24210,24075,24004,23901,23798,23663,23400,23537,23130,23235,22796,22933,22590,22695,22064,22185,22274,22427,21588,21709,21862,22015,21240,21089,21450,21331,20636,20485,20910,20791,27328,27225,27634,27499,26788,26685,27030,26895,28168,28305,28474,28579,27756,27893,27998,28103,25424,25545,25186,25339,24884,25005,24582,24735,26520,26369,26282,26163,26108,25957,25806,25687,31200,31097,30930,30795,31620,31517,31414,31279,32040,32177,31770,31875,32588,32725,32382,32487,28784,28905,28994,29147,29204,29325,29478,29631,29880,29729,30090,29971,30428,30277,30702,30583},{0,154,308,430,616,754,860,966,1232,1098,1508,1406,1720,1570,1932,1814,2464,2362,2196,2062,3016,2898,2812,2662,3440,3562,3140,3294,3864,3970,3628,3766,4928,5082,4724,4846,4392,4530,4124,4230,6032,5898,5796,5694,5624,5474,5324,5206,6880,6778,7124,6990,6280,6162,6588,6438,7728,7850,7940,8094,7256,7362,7532,7670,9856,9754,10164,10030,9448,9330,9692,9542,8784,8906,9060,9214,8248,8354,8460,8598,12064,12218,11796,11918,11592,11730,11388,11494,11248,11114,10948,10846,10648,10498,10412,10294,13760,13658,13556,13422,14248,14130,13980,13830,12560,12682,12324,12478,13176,13282,12876,13014,15456,15610,15700,15822,15880,16018,16188,16294,14512,14378,14724,14622,15064,14914,15340,15222,19712,19866,19508,19630,20328,20466,20060,20166,18896,18762,18660,18558,19384,19234,19084,18966,17568,17466,17812,17678,18120,18002,18428,18278,16496,16618,16708,16862,16920,17026,17196,17334,24128,24282,24436,24558,23592,23730,23836,23942,23184,23050,23460,23358,22776,22626,22988,22870,22496,22394,22228,22094,21896,21778,21692,21542,21296,21418,20996,21150,20824,20930,20588,20726,27520,27418,27316,27182,27112,26994,26844,26694,28496,28618,28260,28414,27960,28066,27660,27798,25120,25274,25364,25486,24648,24786,24956,25062,26352,26218,26564,26462,25752,25602,26028,25910,30912,30810,31220,31086,31400,31282,31644,31494,31760,31882,32036,32190,32376,32482,32588,32726,29024,29178,28756,28878,29448,29586,29244,29350,30128,29994,29828,29726,30680,30530,30444,30326},{0,155,310,429,620,759,858,961,1240,1091,1518,1397,1716,1583,1922,1817,2480,2347,2182,2077,3036,2887,2794,2673,3432,3571,3166,3269,3844,3999,3634,3753,4960,5115,4694,4813,4364,4503,4154,4257,6072,5923,5774,5653,5588,5455,5346,5241,6864,6731,7142,7037,6332,6183,6538,6417,7688,7827,7998,8101,7268,7423,7506,7625,9920,9819,10230,10093,9388,9271,9626,9473,8728,8835,9006,9141,8308,8431,8514,8665,12144,12267,11846,11997,11548,11655,11306,11441,11176,11059,10910,10757,10692,10591,10482,10345,13728,13627,13462,13325,14284,14167,14074,13921,12664,12771,12366,12501,13076,13199,12834,12985,15376,15499,15654,15805,15996,16103,16202,16337,14536,14419,14846,14693,15012,14911,15250,15113,19840,19739,19638,19501,20460,20343,20186,20033,18776,18883,18542,18677,19252,19375,18946,19097,17456,17579,17670,17821,18012,18119,18282,18417,16616,16499,16862,16709,17028,16927,17330,17193,24288,24187,24534,24397,23692,23575,23994,23841,23096,23203,23310,23445,22612,22735,22882,23033,22352,22475,22118,22269,21820,21927,21514,21649,21384,21267,21182,21029,20964,20863,20690,20553,27456,27611,27254,27373,26924,27063,26650,26753,28568,28419,28334,28213,28148,28015,27842,27737,25328,25195,25542,25437,24732,24583,25002,24881,26152,26291,26398,26501,25668,25823,25970,26089,30752,30907,30998,31117,31308,31447,31610,31713,31992,31843,32206,32085,32404,32271,32674,32569,29072,28939,28838,28733,29692,29543,29386,29265,30024,30163,29822,29925,30500,30655,30226,30345},{0,156,312,420,624,748,840,980,1248,1148,1496,1348,1680,1548,1960,1844,2496,2396,2296,2148,2992,2860,2696,2580,3360,3516,3096,3204,3920,4044,3688,3828,4992,4892,4792,4644,4592,4460,4296,4180,5984,6140,5720,5828,5392,5516,5160,5300,6720,6876,7032,7140,6192,6316,6408,6548,7840,7740,8088,7940,7376,7244,7656,7540,9984,10140,9784,9892,9584,9708,9288,9428,9184,9084,8920,8772,8592,8460,8360,8244,11968,11868,12280,12132,11440,11308,11656,11540,10784,10940,11032,11140,10320,10444,10600,10740,13440,13340,13752,13604,14064,13932,14280,14164,12384,12540,12632,12740,12816,12940,13096,13236,15680,15836,15480,15588,16176,16300,15880,16020,14752,14652,14488,14340,15312,15180,15080,14964,19968,20124,20280,20388,19568,19692,19784,19924,19168,19068,19416,19268,18576,18444,18856,18740,18368,18268,18168,18020,17840,17708,17544,17428,17184,17340,16920,17028,16720,16844,16488,16628,23936,23836,23736,23588,24560,24428,24264,24148,22880,23036,22616,22724,23312,23436,23080,23220,21568,21724,21880,21988,22064,22188,22280,22420,20640,20540,20888,20740,21200,21068,21480,21364,26880,27036,26680,26788,27504,27628,27208,27348,28128,28028,27864,27716,28560,28428,28328,28212,24768,24668,25080,24932,25264,25132,25480,25364,25632,25788,25880,25988,26192,26316,26472,26612,31360,31260,31672,31524,30960,30828,31176,31060,32352,32508,32600,32708,31760,31884,32040,32180,29504,29660,29304,29412,28976,29100,28680,28820,30624,30524,30360,30212,30160,30028,29928,29812},{0,157,314,423,628,745,846,979,1256,1141,1490,1359,1692,1537,1958,1851,2512,2381,2282,2167,2980,2873,2718,2563,3384,3493,3074,3231,3916,4049,3702,3819,5024,4925,4762,4615,4564,4425,4334,4211,5960,6101,5746,5871,5436,5537,5126,5275,6768,6893,6986,7127,6148,6297,6462,6563,7832,7685,8098,7999,7404,7281,7638,7499,10048,10205,9850,9959,9524,9641,9230,9363,9128,9013,8850,8719,8668,8513,8422,8315,11920,11789,12202,12087,11492,11385,11742,11587,10872,10981,11074,11231,10252,10385,10550,10667,13536,13437,13786,13639,13972,13833,14254,14131,12296,12437,12594,12719,12924,13025,13126,13275,15664,15789,15370,15511,16196,16345,15998,16099,14808,14661,14562,14463,15276,15153,14998,14859,20096,19997,20410,20263,19700,19561,19918,19795,19048,19189,19282,19407,18460,18561,18726,18875,18256,18381,18026,18167,17700,17849,17438,17539,17336,17189,17026,16927,16844,16721,16630,16491,23840,23997,23578,23687,24404,24521,24174,24307,22984,22869,22770,22639,23484,23329,23174,23067,21744,21613,21962,21847,22148,22041,22462,22307,20504,20613,20770,20927,21100,21233,21334,21451,27072,26973,26874,26727,27572,27433,27278,27155,27944,28085,27666,27791,28508,28609,28262,28411,24592,24717,24874,25015,25188,25337,25438,25539,25848,25701,26050,25951,26252,26129,26550,26411,31328,31485,31578,31687,30740,30857,31022,31155,32392,32277,32690,32559,31996,31841,32198,32091,29616,29485,29322,29207,29124,29017,28926,28771,30552,30661,30306,30463,29996,30129,29718,29835},{0,158,316,418,632,742,836,986,1264,1134,1484,1362,1672,1558,1972,1834,2528,2430,2268,2114,2968,2822,2724,2618,3344,3470,3116,3250,3944,4086,3668,3786,5056,4958,4860,4706,4536,4390,4228,4122,5936,6062,5644,5778,5448,5590,5236,5354,6688,6846,6940,7042,6232,6342,6500,6650,7888,7758,8172,8050,7336,7222,7572,7434,10112,10014,9916,9762,9720,9574,9412,9306,9072,9198,8780,8914,8456,8598,8244,8362,11872,12030,12124,12226,11288,11398,11556,11706,10896,10766,11180,11058,10472,10358,10708,10570,13376,13534,13692,13794,13880,13990,14084,14234,12464,12334,12684,12562,13000,12886,13300,13162,15776,15678,15516,15362,16344,16198,16100,15994,14672,14798,14444,14578,15144,15286,14868,14986,20224,20382,20028,20130,19832,19942,19524,19674,19440,19310,19148,19026,18824,18710,18612,18474,18144,18046,18396,18242,17560,17414,17828,17722,16912,17038,17196,17330,16488,16630,16724,16842,23744,23646,24060,23906,24248,24102,24452,24346,22576,22702,22796,22930,23112,23254,23412,23530,21792,21950,21532,21634,22360,22470,22116,22266,20944,20814,20716,20594,21416,21302,21140,21002,26752,26654,27068,26914,27384,27238,27588,27482,27760,27886,27980,28114,28168,28310,28468,28586,24928,25086,24668,24770,25368,25478,25124,25274,26000,25870,25772,25650,26600,26486,26324,26186,31552,31710,31356,31458,31032,31142,30724,30874,32688,32558,32396,32274,32200,32086,31988,31850,29344,29246,29596,29442,28888,28742,29156,29050,30288,30414,30572,30706,29736,29878,29972,30090},{0,159,318,417,636,739,834,989,1272,1127,1478,1369,1668,1563,1978,1829,2544,2415,2254,2129,2956,2835,2738,2605,3336,3479,3126,3241,3956,4075,3658,3797,5088,4991,4830,4673,4508,4355,4258,4157,5912,6023,5670,5817,5476,5627,5210,5317,6672,6799,6958,7089,6252,6387,6482,6605,7912,7799,8150,8009,7316,7179,7594,7477,10176,10079,9982,9825,9660,9507,9346,9245,9016,9127,8710,8857,8516,8667,8314,8421,11824,11951,12046,12177,11340,11475,11634,11757,10952,10839,11254,11113,10420,10283,10634,10517,13344,13503,13598,13697,13916,14019,14178,14333,12504,12359,12774,12665,12964,12859,13210,13061,15824,15695,15598,15473,16300,16179,16018,15885,14632,14775,14358,14473,15188,15307,14954,15093,20352,20255,20158,20001,19964,19811,19650,19549,19320,19431,19014,19161,18692,18843,18490,18597,18032,18159,18254,18385,17420,17555,17714,17837,17032,16919,17334,17193,16628,16491,16842,16725,23648,23807,23902,24001,24092,24195,24354,24509,22680,22535,22950,22841,23268,23163,23514,23365,21904,21775,21678,21553,22508,22387,22226,22093,20840,20983,20566,20681,21268,21387,21034,21173,26688,26847,27006,27105,27196,27299,27394,27549,27832,27687,28038,27929,28356,28251,28666,28517,25008,24879,24718,24593,25548,25427,25330,25197,25928,26071,25718,25833,26420,26539,26122,26261,31648,31551,31390,31233,31196,31043,30946,30845,32600,32711,32358,32505,32036,32187,31770,31877,29264,29391,29550,29681,28716,28851,28946,29069,30376,30263,30614,30473,29908,29771,30186,30069},{0,160,320,480,640,544,960,864,1280,1440,1088,1248,1920,1824,1728,1632,2560,2720,2880,3040,2176,2080,2496,2400,3840,4000,3648,3808,3456,3360,3264,3168,5120,5280,5440,5600,5760,5664,6080,5984,4352,4512,4160,4320,4992,4896,4800,4704,7680,7840,8000,8160,7296,7200,7616,7520,6912,7072,6720,6880,6528,6432,6336,6240,10240,10400,10560,10720,10880,10784,11200,11104,11520,11680,11328,11488,12160,12064,11968,11872,8704,8864,9024,9184,8320,8224,8640,8544,9984,10144,9792,9952,9600,9504,9408,9312,15360,15520,15680,15840,16000,15904,16320,16224,14592,14752,14400,14560,15232,15136,15040,14944,13824,13984,14144,14304,13440,13344,13760,13664,13056,13216,12864,13024,12672,12576,12480,12384,20480,20640,20800,20960,21120,21024,21440,21344,21760,21920,21568,21728,22400,22304,22208,22112,23040,23200,23360,23520,22656,22560,22976,22880,24320,24480,24128,24288,23936,23840,23744,23648,17408,17568,17728,17888,18048,17952,18368,18272,16640,16800,16448,16608,17280,17184,17088,16992,19968,20128,20288,20448,19584,19488,19904,19808,19200,19360,19008,19168,18816,18720,18624,18528,30720,30880,31040,31200,31360,31264,31680,31584,32000,32160,31808,31968,32640,32544,32448,32352,29184,29344,29504,29664,28800,28704,29120,29024,30464,30624,30272,30432,30080,29984,29888,29792,27648,27808,27968,28128,28288,28192,28608,28512,26880,27040,26688,26848,27520,27424,27328,27232,26112,26272,26432,26592,25728,25632,26048,25952,25344,25504,25152,25312,24960,24864,24768,24672},{0,161,322,483,644,549,966,871,1288,1449,1098,1259,1932,1837,1742,1647,2576,2737,2898,3059,2196,2101,2518,2423,3864,4025,3674,3835,3484,3389,3294,3199,5152,5249,5474,5571,5796,5637,6118,5959,4392,4489,4202,4299,5036,4877,4846,4687,7728,7825,8050,8147,7348,7189,7670,7511,6968,7065,6778,6875,6588,6429,6398,6239,10304,10465,10498,10659,10948,10853,11142,11047,11592,11753,11274,11435,12236,12141,11918,11823,8784,8945,8978,9139,8404,8309,8598,8503,10072,10233,9754,9915,9692,9597,9374,9279,15456,15553,15650,15747,16100,15941,16294,16135,14696,14793,14378,14475,15340,15181,15022,14863,13936,14033,14130,14227,13556,13397,13750,13591,13176,13273,12858,12955,12796,12637,12478,12319,20608,20513,20930,20835,20996,21157,21318,21479,21896,21801,21706,21611,22284,22445,22094,22255,23184,23089,23506,23411,22548,22709,22870,23031,24472,24377,24282,24187,23836,23997,23646,23807,17568,17409,17890,17731,17956,18053,18278,18375,16808,16649,16618,16459,17196,17293,17006,17103,20144,19985,20466,20307,19508,19605,19830,19927,19384,19225,19194,19035,18748,18845,18558,18655,30912,30817,31106,31011,31300,31461,31494,31655,32200,32105,31882,31787,32588,32749,32270,32431,29392,29297,29586,29491,28756,28917,28950,29111,30680,30585,30362,30267,30044,30205,29726,29887,27872,27713,28066,27907,28260,28357,28454,28551,27112,26953,26794,26635,27500,27597,27182,27279,26352,26193,26546,26387,25716,25813,25910,26007,25592,25433,25274,25115,24956,25053,24638,24735},{0,162,324,486,648,554,972,878,1296,1458,1108,1270,1944,1850,1756,1662,2592,2690,2916,3014,2216,2058,2540,2382,3888,3986,3700,3798,3512,3354,3324,3166,5184,5346,5380,5542,5832,5738,6028,5934,4432,4594,4116,4278,5080,4986,4764,4670,7776,7874,7972,8070,7400,7242,7596,7438,7024,7122,6708,6806,6648,6490,6332,6174,10368,10274,10692,10598,10760,10922,11084,11246,11664,11570,11476,11382,12056,12218,11868,12030,8864,8706,9188,9030,8232,8330,8556,8654,10160,10002,9972,9814,9528,9626,9340,9438,15552,15458,15748,15654,15944,16106,16140,16302,14800,14706,14484,14390,15192,15354,14876,15038,14048,13890,14244,14086,13416,13514,13612,13710,13296,13138,12980,12822,12664,12762,12348,12446,20736,20898,20548,20710,21384,21290,21196,21102,21520,21682,21844,22006,22168,22074,22492,22398,23328,23426,23140,23238,22952,22794,22764,22606,24112,24210,24436,24534,23736,23578,24060,23902,17728,17890,17412,17574,18376,18282,18060,17966,16464,16626,16660,16822,17112,17018,17308,17214,20320,20418,20004,20102,19944,19786,19628,19470,19056,19154,19252,19350,18680,18522,18876,18718,31104,31010,30916,30822,31496,31658,31308,31470,31888,31794,32212,32118,32280,32442,32604,32766,29600,29442,29412,29254,28968,29066,28780,28878,30384,30226,30708,30550,29752,29850,30076,30174,28096,28002,27780,27686,28488,28650,28172,28334,26832,26738,27028,26934,27224,27386,27420,27582,26592,26434,26276,26118,25960,26058,25644,25742,25328,25170,25524,25366,24696,24794,24892,24990},{0,163,326,485,652,559,970,873,1304,1467,1118,1277,1940,1847,1746,1649,2608,2707,2934,3029,2236,2079,2554,2393,3880,3979,3694,3789,3492,3335,3298,3137,5216,5315,5414,5509,5868,5711,6058,5897,4472,4571,4158,4253,5108,4951,4786,4625,7760,7923,7958,8117,7388,7295,7578,7481,6984,7147,6670,6829,6596,6503,6274,6177,10432,10339,10630,10533,10828,10991,11018,11177,11736,11643,11422,11325,12116,12279,11794,11953,8944,8787,9142,8981,8316,8415,8506,8601,10216,10059,9902,9741,9572,9671,9250,9345,15520,15363,15846,15685,15916,16015,16234,16329,14776,14619,14590,14429,15156,15255,14962,15057,13968,13875,14294,14197,13340,13503,13658,13817,13192,13099,13006,12909,12548,12711,12354,12513,20864,20771,20678,20581,21260,21423,21066,21225,21656,21563,21982,21885,22036,22199,22354,22513,23472,23315,23286,23125,22844,22943,22650,22745,24232,24075,24558,24397,23588,23687,23906,24001,17888,17731,17574,17413,18284,18383,17962,18057,16632,16475,16830,16669,17012,17111,17202,17297,20432,20339,20118,20021,19804,19967,19482,19641,19144,19051,19342,19245,18500,18663,18690,18849,31040,31203,30726,30885,31692,31599,31370,31273,31832,31995,32030,32189,32468,32375,32658,32561,29552,29651,29238,29333,29180,29023,28858,28697,30312,30411,30510,30605,29924,29767,30114,29953,27936,28035,27750,27845,28588,28431,28394,28233,26680,26779,27006,27101,27316,27159,27634,27473,26384,26547,26198,26357,26012,25919,25818,25721,25096,25259,25422,25581,24708,24615,25026,24929},{0,164,328,492,656,564,984,892,1312,1412,1128,1228,1968,1812,1784,1628,2624,2788,2824,2988,2256,2164,2456,2364,3936,4036,3624,3724,3568,3412,3256,3100,5248,5156,5576,5484,5648,5812,5976,6140,4512,4356,4328,4172,4912,5012,4728,4828,7872,7780,8072,7980,7248,7412,7448,7612,7136,6980,6824,6668,6512,6612,6200,6300,10496,10660,10312,10476,11152,11060,10968,10876,11296,11396,11624,11724,11952,11796,12280,12124,9024,9188,8712,8876,8656,8564,8344,8252,9824,9924,10024,10124,9456,9300,9656,9500,15744,15652,15560,15468,16144,16308,15960,16124,14496,14340,14824,14668,14896,14996,15224,15324,14272,14180,13960,13868,13648,13812,13336,13500,13024,12868,13224,13068,12400,12500,12600,12700,20992,21156,21320,21484,20624,20532,20952,20860,22304,22404,22120,22220,21936,21780,21752,21596,22592,22756,22792,22956,23248,23156,23448,23356,23904,24004,23592,23692,24560,24404,24248,24092,18048,17956,18376,18284,17424,17588,17752,17916,17312,17156,17128,16972,16688,16788,16504,16604,19648,19556,19848,19756,20048,20212,20248,20412,18912,18756,18600,18444,19312,19412,19000,19100,31488,31652,31304,31468,31120,31028,30936,30844,32288,32388,32616,32716,31920,31764,32248,32092,28992,29156,28680,28844,29648,29556,29336,29244,29792,29892,29992,30092,30448,30292,30648,30492,28544,28452,28360,28268,27920,28084,27736,27900,27296,27140,27624,27468,26672,26772,27000,27100,26048,25956,25736,25644,26448,26612,26136,26300,24800,24644,25000,24844,25200,25300,25400,25500},{0,165,330,495,660,561,990,891,1320,1421,1122,1223,1980,1817,1782,1619,2640,2805,2842,3007,2244,2145,2446,2347,3960,4061,3634,3735,3564,3401,3238,3075,5280,5125,5610,5455,5684,5777,6014,6107,4488,4397,4290,4199,4892,5049,4694,4851,7920,7765,8122,7967,7268,7361,7470,7563,7128,7037,6802,6711,6476,6633,6150,6307,10560,10725,10250,10415,11220,11121,10910,10811,11368,11469,11554,11655,12028,11865,12214,12051,8976,9141,8794,8959,8580,8481,8398,8299,9784,9885,10098,10199,9388,9225,9702,9539,15840,15685,15530,15375,16244,16337,15934,16027,14536,14445,14722,14631,14940,15097,15126,15283,14256,14101,14074,13919,13604,13697,13422,13515,12952,12861,13266,13175,12300,12457,12614,12771,21120,21029,21450,21359,20500,20657,20830,20987,22440,22285,22242,22087,21820,21913,21622,21715,22736,22645,22938,22847,23108,23265,23310,23467,24056,23901,23730,23575,24428,24521,24102,24195,17952,18053,18282,18383,17588,17425,17918,17755,17160,17325,16962,17127,16796,16697,16598,16499,19568,19669,19770,19871,20196,20033,20398,20235,18776,18941,18450,18615,19404,19305,19078,18979,31680,31589,31370,31279,31060,31217,30750,30907,32488,32333,32674,32519,31868,31961,32054,32147,29072,28981,28890,28799,29444,29601,29262,29419,29880,29725,30194,30039,30252,30345,30566,30659,28512,28613,28202,28303,28148,27985,27838,27675,27208,27373,27394,27559,26844,26745,27030,26931,25904,26005,25722,25823,26532,26369,26350,26187,24600,24765,24914,25079,25228,25129,25542,25443},{0,166,332,490,664,574,980,882,1328,1430,1148,1242,1960,1806,1764,1602,2656,2758,2860,2954,2296,2142,2484,2322,3920,4086,3612,3770,3528,3438,3204,3106,5312,5222,5516,5418,5720,5886,5908,6066,4592,4438,4284,4122,4968,5070,4644,4738,7840,7686,8172,8010,7224,7326,7540,7634,7056,6966,6876,6778,6408,6574,6212,6370,10624,10534,10444,10346,11032,11198,10836,10994,11440,11286,11772,11610,11816,11918,12132,12226,9184,9030,8876,8714,8568,8670,8244,8338,9936,9846,10140,10042,9288,9454,9476,9634,15680,15846,15372,15530,16344,16254,16020,15922,14448,14550,14652,14746,15080,14926,15268,15106,14112,14214,13932,14026,13752,13598,13556,13394,12816,12982,13148,13306,12424,12334,12740,12642,21248,21414,21068,21226,20888,20798,20692,20594,22064,22166,22396,22490,21672,21518,21988,21826,22880,22982,22572,22666,23544,23390,23220,23058,23632,23798,23836,23994,24264,24174,24452,24354,18368,18278,18060,17962,17752,17918,17428,17586,17136,16982,17340,17178,16488,16590,16676,16770,19872,19718,19692,19530,20280,20382,20084,20178,18576,18486,18908,18810,18952,19118,19268,19426,31360,31270,31692,31594,30744,30910,31060,31218,32688,32534,32508,32346,32040,32142,31844,31938,28896,28742,29100,28938,29304,29406,29492,29586,30160,30070,29852,29754,30536,30702,30212,30370,28224,28390,28428,28586,27864,27774,28052,27954,27504,27606,27196,27290,27112,26958,26788,26626,25632,25734,25964,26058,26296,26142,26612,26450,24848,25014,24668,24826,25480,25390,25284,25186},{0,167,334,489,668,571,978,885,1336,1439,1142,1233,1956,1795,1770,1613,2672,2775,2878,2969,2284,2123,2466,2309,3912,4079,3590,3745,3540,3443,3226,3133,5344,5191,5550,5385,5756,5851,5938,6037,4568,4479,4246,4145,4932,5091,4618,4781,7824,7735,8158,8057,7180,7339,7490,7653,7080,6927,6886,6721,6452,6547,6266,6365,10688,10599,10382,10281,11100,11259,10770,10933,11512,11359,11702,11537,11876,11971,12074,12173,9136,8983,8958,8793,8492,8587,8290,8389,9864,9775,10182,10081,9236,9395,9562,9725,15648,15751,15470,15561,16316,16155,16114,15957,14360,14527,14678,14833,14980,14883,15306,15213,14160,14327,13854,14009,13772,13675,13442,13349,12904,13007,13094,13185,12532,12371,12730,12573,21376,21287,21198,21097,20764,20923,20562,20725,22200,22047,22518,22353,21540,21635,21866,21965,23024,22871,22718,22553,23404,23499,23074,23173,23752,23663,23942,23841,24148,24307,24346,24509,18272,18375,17966,18057,17916,17755,17586,17429,16984,17151,17174,17329,16580,16483,16778,16685,19728,19895,19550,19705,20364,20267,20162,20069,18472,18575,18790,18881,19124,18963,19450,19293,31296,31463,31502,31657,30940,30843,31122,31029,32632,32735,32310,32401,32228,32067,31914,31757,28720,28823,29054,29145,29356,29195,29666,29509,29960,30127,29766,29921,30612,30515,30426,30333,28320,28167,28654,28489,27708,27803,28018,28117,27544,27455,27350,27249,26884,27043,26698,26861,25808,25719,26014,25913,26188,26347,26370,26533,25064,24911,24742,24577,25460,25555,25146,25245},{0,168,336,504,672,520,1008,856,1344,1512,1040,1208,2016,1864,1712,1560,2688,2600,3024,2936,2080,2184,2416,2520,4032,3944,3728,3640,3424,3528,3120,3224,5376,5544,5200,5368,6048,5896,5872,5720,4160,4328,4368,4536,4832,4680,5040,4888,8064,7976,7888,7800,7456,7560,7280,7384,6848,6760,7056,6968,6240,6344,6448,6552,10752,10920,11088,11256,10400,10248,10736,10584,12096,12264,11792,11960,11744,11592,11440,11288,8320,8232,8656,8568,8736,8840,9072,9176,9664,9576,9360,9272,10080,10184,9776,9880,16128,16296,15952,16120,15776,15624,15600,15448,14912,15080,15120,15288,14560,14408,14768,14616,13696,13608,13520,13432,14112,14216,13936,14040,12480,12392,12688,12600,12896,13000,13104,13208,21504,21672,21840,22008,22176,22024,22512,22360,20800,20968,20496,20664,21472,21320,21168,21016,24192,24104,24528,24440,23584,23688,23920,24024,23488,23400,23184,23096,22880,22984,22576,22680,16640,16808,16464,16632,17312,17160,17136,16984,17472,17640,17680,17848,18144,17992,18352,18200,19328,19240,19152,19064,18720,18824,18544,18648,20160,20072,20368,20280,19552,19656,19760,19864,32256,32424,32592,32760,31904,31752,32240,32088,31552,31720,31248,31416,31200,31048,30896,30744,29824,29736,30160,30072,30240,30344,30576,30680,29120,29032,28816,28728,29536,29640,29232,29336,27392,27560,27216,27384,27040,26888,26864,26712,28224,28392,28432,28600,27872,27720,28080,27928,24960,24872,24784,24696,25376,25480,25200,25304,25792,25704,26000,25912,26208,26312,26416,26520},{0,169,338,507,676,525,1014,863,1352,1505,1050,1203,2028,1861,1726,1559,2704,2617,3010,2923,2100,2205,2406,2511,4056,3953,3722,3619,3452,3541,3118,3207,5408,5513,5234,5339,6020,5933,5846,5759,4200,4289,4410,4499,4812,4709,5022,4919,8112,7961,7906,7755,7444,7613,7238,7407,6904,6737,7082,6915,6236,6389,6414,6567,10816,10985,11026,11195,10468,10317,10678,10527,12040,12193,11866,12019,11692,11525,11518,11351,8400,8313,8578,8491,8820,8925,8998,9103,9624,9521,9418,9315,10044,10133,9838,9927,16224,16329,15922,16027,15812,15725,15510,15423,14888,14977,15226,15315,14476,14373,14814,14711,13808,13657,13474,13323,14164,14333,13830,13999,12472,12305,12778,12611,12828,12981,13134,13287,21632,21545,21970,21883,22052,22157,22390,22495,20936,20833,20634,20531,21356,21445,21054,21143,24080,24249,24386,24555,23732,23581,24038,23887,23384,23537,23050,23203,23036,22869,22702,22535,16800,16649,16626,16475,17156,17325,16982,17151,17640,17473,17850,17683,17996,18149,18206,18359,19248,19353,19042,19147,18836,18749,18630,18543,20088,20177,20266,20355,19676,19573,19854,19751,32448,32361,32658,32571,31844,31949,32054,32159,31624,31521,31450,31347,31020,31109,30846,30935,29776,29945,29954,30123,30452,30301,30630,30479,28952,29105,28746,28899,29628,29461,29422,29255,27616,27465,27314,27163,26948,27117,26646,26815,28328,28161,28666,28499,27660,27813,27998,28151,24944,25049,24610,24715,25556,25469,25222,25135,25656,25745,25962,26051,26268,26165,26574,26471},{0,170,340,510,680,514,1020,854,1360,1530,1028,1198,2040,1874,1708,1542,2720,2570,3060,2910,2056,2210,2396,2550,4080,3930,3748,3598,3416,3570,3084,3238,5440,5610,5140,5310,6120,5954,5820,5654,4112,4282,4420,4590,4792,4626,5100,4934,8160,8010,7860,7710,7496,7650,7196,7350,6832,6682,7140,6990,6168,6322,6476,6630,10880,10794,11220,11134,10280,10370,10620,10710,12240,12154,11908,11822,11640,11730,11308,11398,8224,8330,8564,8670,8840,8738,9180,9078,9584,9690,9252,9358,10200,10098,9868,9766,16320,16234,16020,15934,15720,15810,15420,15510,14992,14906,15300,15214,14392,14482,14700,14790,13664,13770,13364,13470,14280,14178,13980,13878,12336,12442,12644,12750,12952,12850,13260,13158,21760,21930,21588,21758,22440,22274,22268,22102,20560,20730,20740,20910,21240,21074,21420,21254,24480,24330,24308,24158,23816,23970,23644,23798,23280,23130,23460,23310,22616,22770,22796,22950,16448,16618,16660,16830,17128,16962,17340,17174,17680,17850,17476,17646,18360,18194,18156,17990,19168,19018,19380,19230,18504,18658,18716,18870,20400,20250,20196,20046,19736,19890,19532,19686,32640,32554,32468,32382,32040,32130,31868,31958,31440,31354,31620,31534,30840,30930,31020,31110,29984,30090,29812,29918,30600,30498,30428,30326,28784,28890,28964,29070,29400,29298,29580,29478,27328,27242,27540,27454,26728,26818,26940,27030,28560,28474,28356,28270,27960,28050,27756,27846,24672,24778,24884,24990,25288,25186,25500,25398,25904,26010,25700,25806,26520,26418,26316,26214},{0,171,342,509,684,519,1018,849,1368,1523,1038,1189,2036,1887,1698,1545,2736,2587,3046,2893,2076,2231,2378,2529,4072,3907,3774,3605,3396,3567,3090,3257,5472,5579,5174,5277,6092,5991,5786,5681,4152,4243,4462,4549,4756,4671,5058,4969,8144,8059,7814,7725,7548,7639,7210,7297,6792,6691,7134,7029,6180,6287,6514,6617,10944,10859,11158,11069,10348,10439,10554,10641,12184,12083,11982,11877,11572,11679,11362,11465,8304,8411,8486,8589,8924,8823,9098,8993,9512,9603,9342,9429,10116,10031,9938,9849,16288,16139,16118,15965,15628,15783,15450,15601,15096,14931,15278,15109,14420,14591,14594,14761,13584,13755,13382,13549,14268,14103,14058,13889,12360,12515,12574,12725,13028,12879,13234,13081,21888,21803,21718,21629,22316,22407,22138,22225,20696,20595,20878,20773,21108,21215,21282,21385,24368,24475,24166,24269,23964,23863,23754,23649,23144,23235,23358,23445,22724,22639,22930,22841,16608,16459,16822,16669,16972,17127,17178,17329,17848,17683,17646,17477,18196,18367,17986,18153,19024,19195,19206,19373,18684,18519,18858,18689,20232,20387,20062,20213,19876,19727,19698,19545,32576,32747,32278,32445,32236,32071,31930,31761,31256,31411,31566,31717,30900,30751,31202,31049,30192,30043,29862,29709,30556,30711,30218,30369,28840,28675,29182,29013,29188,29359,29522,29689,27168,27275,27510,27613,26764,26663,27098,26993,28536,28627,28206,28293,28116,28031,27778,27689,24720,24635,25030,24941,25148,25239,25450,25537,26056,25955,25758,25653,26468,26575,26162,26265},{0,172,344,500,688,540,1000,836,1376,1484,1080,1172,2000,1916,1672,1572,2752,2668,2968,2868,2160,2268,2344,2436,4000,3852,3832,3668,3344,3516,3144,3300,5504,5420,5336,5236,5936,6044,5736,5828,4320,4172,4536,4372,4688,4860,4872,5028,8000,8172,7704,7860,7664,7516,7336,7172,6688,6796,7032,7124,6288,6204,6600,6500,11008,11180,10840,10996,10672,10524,10472,10308,11872,11980,12088,12180,11472,11388,11656,11556,8640,8556,8344,8244,9072,9180,8744,8836,9376,9228,9720,9556,9744,9916,10056,10212,16000,15916,16344,16244,15408,15516,15720,15812,15328,15180,15032,14868,14672,14844,14344,14500,13376,13548,13592,13748,14064,13916,14248,14084,12576,12684,12408,12500,13200,13116,13000,12900,22016,22188,22360,22516,21680,21532,21992,21828,21344,21452,21048,21140,20944,20860,20616,20516,23744,23660,23960,23860,24176,24284,24360,24452,22944,22796,22776,22612,23312,23484,23112,23268,17280,17196,17112,17012,16688,16796,16488,16580,18144,17996,18360,18196,17488,17660,17672,17828,18752,18924,18456,18612,19440,19292,19112,18948,19488,19596,19832,19924,20112,20028,20424,20324,32000,32172,31832,31988,32688,32540,32488,32324,30816,30924,31032,31124,31440,31356,31624,31524,30656,30572,30360,30260,30064,30172,29736,29828,29344,29196,29688,29524,28688,28860,29000,29156,26752,26668,27096,26996,27184,27292,27496,27588,28128,27980,27832,27668,28496,28668,28168,28324,25152,25324,25368,25524,24816,24668,25000,24836,26400,26508,26232,26324,26000,25916,25800,25700},{0,173,346,503,692,537,1006,835,1384,1477,1074,1183,2012,1905,1670,1579,2768,2685,2954,2855,2148,2249,2366,2451,4024,3861,3810,3663,3340,3489,3158,3323,5536,5389,5370,5207,5908,6073,5710,5859,4296,4197,4498,4415,4732,4817,4902,5003,8048,8157,7722,7815,7620,7529,7326,7219,6680,6837,6978,7151,6316,6145,6646,6491,11072,11245,10778,10935,10740,10585,10414,10243,11816,11909,12146,12255,11420,11313,11718,11627,8592,8509,8394,8295,8996,9097,8830,8915,9464,9301,9634,9487,9804,9953,10006,10171,16096,15949,16314,16151,15444,15609,15630,15779,15240,15141,15058,14975,14652,14737,14438,14539,13360,13469,13674,13767,13956,13865,14302,14195,12632,12789,12290,12463,13292,13121,12982,12827,22144,22061,22490,22391,21556,21657,21870,21955,21480,21317,21170,21023,20828,20977,20486,20651,23632,23805,23818,23975,24292,24137,24510,24339,22840,22933,22626,22735,23436,23329,23254,23163,17184,17293,17018,17111,16788,16697,16590,16483,17992,18149,18194,18367,17660,17489,17830,17675,18928,18781,18602,18439,19268,19433,18974,19123,19608,19509,19906,19823,20012,20097,20342,20443,32192,32109,31898,31799,32628,32729,32302,32387,30888,30725,31218,31071,31260,31409,31558,31723,30480,30653,30282,30439,30116,29961,29950,29779,29304,29397,29474,29583,28876,28769,29078,28987,26720,26829,26938,27031,27348,27257,27534,27427,27912,28069,27730,27903,28604,28433,28390,28235,25264,25117,25578,25415,24580,24745,24926,25075,26584,26485,26242,26159,25964,26049,25654,25755},{0,174,348,498,696,534,996,842,1392,1502,1068,1154,1992,1894,1684,1594,2784,2638,3004,2834,2136,2294,2308,2474,3984,3902,3788,3682,3368,3462,3188,3290,5568,5486,5276,5170,6008,6102,5668,5770,4272,4126,4588,4418,4616,4774,4948,5114,7968,8078,7804,7890,7576,7478,7364,7274,6736,6910,6924,7074,6376,6214,6580,6426,11136,11054,10972,10866,10552,10646,10340,10442,12016,11870,12204,12034,11336,11494,11540,11706,8544,8654,8252,8338,9176,9078,8836,8746,9232,9406,9548,9698,9896,9734,10228,10074,15936,16110,16156,16306,15608,15446,15780,15626,15152,15262,14956,15042,14728,14630,14548,14458,13472,13326,13820,13650,13848,14006,14148,14314,12752,12670,12428,12322,13160,13254,12852,12954,22272,22446,22108,22258,21944,21782,21732,21578,21104,21214,21292,21378,20680,20582,20884,20794,24032,23886,23740,23570,24408,24566,24068,24234,22672,22590,22988,22882,23080,23174,23412,23514,17088,17006,17308,17202,16504,16598,16676,16778,18352,18206,18156,17986,17672,17830,17492,17658,18464,18574,18812,18898,19096,18998,19396,19306,19792,19966,19468,19618,20456,20294,20148,19994,31872,31790,32220,32114,32312,32406,32612,32714,31216,31070,30892,30722,31560,31718,31252,31418,30304,30414,30524,30610,29912,29814,30084,29994,29456,29630,29260,29410,29096,28934,28916,28762,26944,27118,26652,26802,27640,27478,27300,27146,27696,27806,28012,28098,28296,28198,28628,28538,25504,25358,25340,25170,24856,25014,24644,24810,26320,26238,26508,26402,25704,25798,25908,26010},{0,175,350,497,700,531,994,845,1400,1495,1062,1161,1988,1899,1690,1589,2800,2655,2990,2817,2124,2275,2322,2493,3976,3879,3798,3705,3380,3483,3178,3269,5600,5455,5310,5137,5980,6131,5634,5805,4248,4151,4550,4457,4644,4747,4986,5077,7952,8127,7758,7905,7596,7427,7410,7261,6760,6855,6966,7065,6356,6267,6538,6437,11200,11119,10910,10801,10620,10707,10274,10381,11960,11799,12262,12105,11268,11435,11610,11765,8496,8607,8302,8385,9100,8995,8914,8829,9288,9447,9494,9657,9972,9819,10154,9989,15904,16015,16254,16337,15516,15411,15810,15725,15192,15351,14854,15017,14820,14667,14522,14357,13520,13439,13710,13601,13932,14019,14130,14237,12712,12551,12534,12377,13076,13243,12874,13029,22400,22319,22238,22129,21820,21907,21602,21709,21240,21079,21414,21257,20548,20715,20762,20917,23920,24031,23598,23681,24524,24419,24210,24125,22536,22695,22870,23033,23220,23067,23530,23365,16992,17103,17214,17297,16604,16499,16770,16685,18200,18359,17990,18153,17828,17675,17658,17493,18576,18495,18894,18785,18988,19075,19314,19421,19944,19783,19638,19481,20308,20475,19978,20133,31808,31983,32030,32177,32508,32339,32674,32525,31032,31127,30822,30921,31620,31531,31450,31349,30384,30239,30702,30529,29708,29859,30034,30205,29640,29543,29334,29241,29044,29147,28714,28805,27040,26895,26878,26705,27420,27571,27202,27373,27864,27767,28038,27945,28260,28363,28474,28565,25424,25599,25102,25249,25068,24899,24754,24605,26152,26247,26486,26585,25748,25659,26058,25957},{0,176,352,464,704,624,928,784,1408,1328,1248,1104,1856,2032,1568,1680,2816,2992,2656,2768,2496,2416,2208,2064,3712,3632,4064,3920,3136,3312,3360,3472,5632,5808,5984,6096,5312,5232,5536,5392,4992,4912,4832,4688,4416,4592,4128,4240,7424,7600,7264,7376,8128,8048,7840,7696,6272,6192,6624,6480,6720,6896,6944,7056,11264,11440,11616,11728,11968,11888,12192,12048,10624,10544,10464,10320,11072,11248,10784,10896,9984,10160,9824,9936,9664,9584,9376,9232,8832,8752,9184,9040,8256,8432,8480,8592,14848,15024,15200,15312,14528,14448,14752,14608,16256,16176,16096,15952,15680,15856,15392,15504,12544,12720,12384,12496,13248,13168,12960,12816,13440,13360,13792,13648,13888,14064,14112,14224,22528,22704,22880,22992,23232,23152,23456,23312,23936,23856,23776,23632,24384,24560,24096,24208,21248,21424,21088,21200,20928,20848,20640,20496,22144,22064,22496,22352,21568,21744,21792,21904,19968,20144,20320,20432,19648,19568,19872,19728,19328,19248,19168,19024,18752,18928,18464,18576,17664,17840,17504,17616,18368,18288,18080,17936,16512,16432,16864,16720,16960,17136,17184,17296,29696,29872,30048,30160,30400,30320,30624,30480,29056,28976,28896,28752,29504,29680,29216,29328,32512,32688,32352,32464,32192,32112,31904,31760,31360,31280,31712,31568,30784,30960,31008,31120,25088,25264,25440,25552,24768,24688,24992,24848,26496,26416,26336,26192,25920,26096,25632,25744,26880,27056,26720,26832,27584,27504,27296,27152,27776,27696,28128,27984,28224,28400,28448,28560},{0,177,354,467,708,629,934,791,1416,1337,1258,1115,1868,2045,1582,1695,2832,2977,2674,2755,2516,2405,2230,2055,3736,3625,4090,3915,3164,3309,3390,3471,5664,5777,5954,6131,5348,5205,5510,5431,5032,4889,4810,4731,4460,4573,4110,4287,7472,7553,7250,7395,8180,8005,7830,7719,6328,6153,6618,6507,6780,6861,6942,7087,11328,11505,11554,11667,11908,11829,12262,12119,10696,10617,10410,10267,11020,11197,10862,10975,10064,10209,9778,9859,9620,9509,9462,9287,8920,8809,9146,8971,8220,8365,8574,8655,14944,15057,15106,15283,14500,14357,14790,14711,16360,16217,16010,15931,15660,15773,15438,15615,12656,12737,12306,12451,13236,13061,13014,12903,13560,13385,13722,13611,13884,13965,14174,14319,22656,22577,23010,22867,23108,23285,23334,23447,23816,23993,23658,23771,24524,24445,24238,24095,21392,21281,21234,21059,20820,20965,20534,20615,22040,22185,22394,22475,21724,21613,21950,21775,20128,19985,20418,20339,19556,19669,19718,19895,19240,19353,19018,19195,18924,18781,18574,18495,17840,17665,17618,17507,18292,18373,17942,18087,16440,16521,16730,16875,17148,16973,17310,17199,29888,29809,30114,29971,30212,30389,30566,30679,29000,29177,28714,28827,29580,29501,29422,29279,32720,32609,32434,32259,32020,32165,31862,31943,31320,31465,31546,31627,30876,30765,31230,31055,25312,25169,25474,25395,24612,24725,24902,25079,26472,26585,26122,26299,26028,25885,25806,25727,27120,26945,26770,26659,27444,27525,27222,27367,27768,27849,27930,28075,28348,28173,28638,28527},{0,178,356,470,712,634,940,798,1424,1314,1268,1094,1880,2026,1596,1678,2848,2962,2628,2806,2536,2394,2188,2110,3760,3586,4052,3942,3192,3274,3356,3502,5696,5874,5924,6038,5256,5178,5612,5470,5072,4962,4788,4614,4376,4522,4220,4302,7520,7634,7172,7350,8104,7962,7884,7806,6384,6210,6548,6438,6712,6794,7004,7150,11392,11314,11748,11606,11848,12026,12076,12190,10512,10658,10356,10438,11224,11114,10940,10766,10144,10002,9924,9846,9576,9690,9228,9406,8752,8834,9044,9190,8440,8266,8604,8494,15040,14962,15268,15126,14344,14522,14700,14814,16208,16354,15924,16006,15768,15658,15612,15438,12768,12626,12420,12342,13096,13210,12876,13054,13424,13506,13588,13734,14008,13834,14300,14190,22784,22962,22628,22742,23496,23418,23212,23070,23696,23586,24052,23878,24152,24298,24380,24462,21024,21138,21316,21494,20712,20570,20876,20798,22448,22274,22228,22118,21880,21962,21532,21678,20288,20466,20004,20118,19848,19770,19692,19550,19152,19042,19380,19206,18456,18602,18812,18894,17504,17618,17668,17846,18088,17946,18380,18302,16880,16706,16532,16422,17208,17290,16988,17134,30080,30002,29924,29782,30536,30714,30252,30366,28688,28834,29044,29126,29400,29290,29628,29454,32416,32274,32708,32630,31848,31962,32012,32190,31536,31618,31316,31462,31224,31050,30876,30766,25536,25458,25252,25110,24840,25018,24684,24798,26192,26338,26420,26502,25752,25642,26108,25934,26848,26706,27012,26934,27176,27290,27468,27646,28016,28098,27668,27814,28600,28426,28380,28270},{0,179,358,469,716,639,938,793,1432,1323,1278,1101,1876,2023,1586,1665,2864,2947,2646,2789,2556,2383,2202,2089,3752,3611,4046,3965,3172,3287,3330,3505,5728,5843,5894,6069,5292,5151,5578,5497,5112,4939,4766,4653,4404,4487,4178,4321,7504,7651,7222,7301,8092,7983,7930,7753,6344,6267,6574,6429,6660,6839,7010,7121,11456,11379,11686,11541,11788,11967,12138,12249,10584,10731,10302,10381,11156,11047,10994,10817,10224,10051,9878,9765,9532,9615,9306,9449,8808,8923,8974,9149,8356,8215,8642,8561,15008,14867,15302,15221,14444,14559,14602,14777,16184,16267,15966,16109,15860,15687,15506,15393,12688,12579,12534,12357,13148,13295,12858,12937,13320,13499,13678,13789,14020,13943,14242,14097,22912,22835,22758,22613,23372,23551,23082,23193,23576,23723,23934,24013,24276,24167,24498,24321,21168,20995,21462,21349,20604,20687,20762,20905,22312,22427,22094,22269,21988,21847,21634,21553,20448,20307,20102,20021,19756,19871,19530,19705,19064,19147,19230,19373,18612,18439,18898,18785,17616,17507,17846,17669,17948,18095,18298,18377,16712,16891,16430,16541,17284,17207,17122,16977,30016,30195,29734,29845,30604,30527,30442,30297,28888,28779,29118,28941,29204,29351,29554,29633,32368,32451,32534,32677,31932,31759,32218,32105,31720,31579,31374,31293,31012,31127,30786,30961,25376,25491,25158,25333,25068,24927,24714,24633,26296,26123,26590,26477,25716,25799,25874,26017,26640,26787,26998,27077,27356,27247,27578,27401,28040,27963,27886,27741,28484,28663,28194,28305},{0,180,360,476,720,612,952,780,1440,1300,1224,1148,1904,1988,1560,1708,2880,3060,2600,2716,2448,2340,2296,2124,3808,3668,3976,3900,3120,3204,3416,3564,5760,5684,6120,5980,5200,5348,5432,5516,4896,5012,4680,4860,4592,4420,4248,4140,7616,7540,7336,7196,7952,8100,7800,7884,6240,6356,6408,6588,6832,6660,7128,7020,11520,11700,11368,11484,12240,12132,11960,11788,10400,10260,10696,10620,10864,10948,11032,11180,9792,9972,10024,10140,9360,9252,9720,9548,9184,9044,8840,8764,8496,8580,8280,8428,15232,15156,15080,14940,14672,14820,14392,14476,15904,16020,16200,16380,15600,15428,15768,15660,12480,12404,12712,12572,12816,12964,13176,13260,13664,13780,13320,13500,14256,14084,14040,13932,23040,23220,23400,23516,22736,22628,22968,22796,24480,24340,24264,24188,23920,24004,23576,23724,20800,20980,20520,20636,21392,21284,21240,21068,21728,21588,21896,21820,22064,22148,22360,22508,19584,19508,19944,19804,20048,20196,20280,20364,18720,18836,18504,18684,19440,19268,19096,18988,18368,18292,18088,17948,17680,17828,17528,17612,16992,17108,17160,17340,16560,16388,16856,16748,30464,30644,30312,30428,30160,30052,29880,29708,29344,29204,29640,29564,28784,28868,28952,29100,31808,31988,32040,32156,32400,32292,32760,32588,31200,31060,30856,30780,31536,31620,31320,31468,24960,24884,24808,24668,25424,25572,25144,25228,25632,25748,25928,26108,26352,26180,26520,26412,27328,27252,27560,27420,26640,26788,27000,27084,28512,28628,28168,28348,28080,27908,27864,27756},{0,181,362,479,724,609,958,779,1448,1309,1218,1143,1916,1993,1558,1699,2896,3045,2618,2703,2436,2353,2286,2139,3832,3661,3986,3879,3116,3225,3398,3571,5792,5653,6090,6015,5236,5313,5406,5547,4872,5053,4706,4823,4572,4457,4278,4099,7664,7493,7322,7215,7972,8081,7758,7931,6232,6381,6450,6535,6796,6713,7142,6995,11584,11765,11306,11423,12180,12065,12030,11851,10472,10333,10626,10551,10812,10889,11094,11235,9744,9893,10106,10191,9412,9329,9646,9499,9144,8973,8914,8807,8556,8665,8198,8371,15328,15189,14986,14911,14644,14721,14430,14571,15944,16125,16162,16279,15516,15401,15862,15683,12464,12293,12762,12655,12900,13009,13070,13243,13592,13741,13426,13511,14284,14201,13990,13843,23168,23093,23530,23391,22612,22753,22846,22923,24360,24477,24130,24311,24060,23881,23702,23587,20944,20837,20666,20495,21252,21425,21102,21211,21624,21709,21778,21927,22188,22041,22470,22387,19488,19605,19786,19967,20212,20033,20382,20267,18824,18749,18658,18519,19292,19433,18998,19075,18288,18373,17946,18095,17828,17681,17614,17531,17112,17005,17330,17159,16396,16569,16742,16851,30656,30581,30378,30239,29972,30113,29822,29899,29288,29405,29442,29623,28860,28681,29142,29027,31888,31781,32250,32079,32324,32497,32558,32667,31032,31117,30802,30951,31724,31577,31366,31283,24928,25045,24586,24767,25524,25345,25310,25195,25800,25725,26018,25879,26140,26281,26486,26563,27184,27269,27482,27631,26852,26705,27022,26939,28568,28461,28402,28231,27980,28153,27686,27795},{0,182,364,474,728,622,948,770,1456,1286,1244,1130,1896,2014,1540,1714,2912,3030,2572,2746,2488,2318,2260,2146,3792,3686,4028,3850,3080,3262,3428,3538,5824,5750,6060,5914,5144,5294,5492,5570,4976,5062,4636,4778,4520,4382,4292,4210,7584,7446,7372,7290,8056,8142,7700,7842,6160,6310,6524,6602,6856,6782,7076,6930,11648,11574,11500,11354,12120,12270,11828,11906,10288,10374,10588,10730,10984,10846,11140,11058,9952,9814,10124,10042,9272,9358,9556,9698,9040,9190,8764,8842,8584,8510,8420,8274,15168,15350,14892,15002,14744,14638,14580,14402,16112,15942,16284,16170,15400,15518,15684,15858,12320,12438,12620,12794,13048,12878,13204,13090,13712,13606,13564,13386,14152,14334,13860,13970,23296,23478,23148,23258,23000,22894,22708,22530,24240,24070,24540,24426,23656,23774,23812,23986,20576,20694,20748,20922,21176,21006,21460,21346,21968,21862,21692,21514,22280,22462,22116,22226,19904,19830,19628,19482,20248,20398,20084,20162,18544,18630,18716,18858,19112,18974,19396,19314,18080,17942,18380,18298,17528,17614,17684,17826,17168,17318,17020,17098,16840,16766,16548,16402,30336,30262,30700,30554,29784,29934,30004,30082,29488,29574,29276,29418,29160,29022,28804,28722,32224,32086,31884,31802,32568,32654,32340,32482,30800,30950,31036,31114,31368,31294,31716,31570,24640,24822,24876,24986,25240,25134,25588,25410,26096,25926,25756,25642,26408,26526,26180,26354,27424,27542,27212,27386,27128,26958,26772,26658,28304,28198,28668,28490,27720,27902,27940,28050},{0,183,366,473,732,619,946,773,1464,1295,1238,1121,1892,2003,1546,1725,2928,3015,2590,2729,2476,2331,2242,2165,3784,3711,4006,3857,3092,3235,3450,3533,5856,5719,6030,5945,5180,5259,5458,5605,4952,5103,4662,4737,4484,4403,4330,4189,7568,7463,7422,7241,8012,8187,7714,7829,6184,6303,6470,6641,6900,6723,7066,6957,11712,11639,11438,11289,12060,12203,11890,11973,10360,10447,10518,10657,10916,10771,11210,11133,9904,9735,10206,10089,9324,9435,9474,9653,8968,9151,8806,8913,8660,8547,8378,8205,15136,15255,14926,15097,14844,14667,14482,14373,16024,15919,16374,16193,15428,15603,15658,15773,12368,12519,12606,12681,12940,12859,13282,13141,13800,13663,13446,13361,14132,14211,13914,14061,23424,23351,23278,23129,22876,23019,22578,22661,24120,24207,24406,24545,23780,23635,23946,23869,20720,20551,20894,20777,21036,21147,21314,21493,21832,22015,21542,21649,22420,22307,22266,22093,19808,19927,19470,19641,20412,20235,20178,20069,18648,18543,18870,18689,18948,19123,19306,19421,17936,18087,18302,18377,17612,17531,17826,17685,17320,17183,17094,17009,16756,16835,16410,16557,30272,30455,30510,30617,29852,29739,30194,30021,29688,29519,29334,29217,28964,29075,28746,28925,32048,32135,31838,31977,32748,32603,32386,32309,30856,30783,31206,31057,31316,31459,31546,31629,24736,24599,25038,24953,25212,25291,25362,25509,25880,26031,25718,25793,26564,26483,26282,26141,27600,27495,27326,27145,26892,27067,26722,26837,28264,28383,28422,28593,27828,27651,28122,28013},{0,184,368,456,736,600,912,808,1472,1400,1200,1032,1824,1944,1616,1768,2944,2872,2800,2632,2400,2520,2064,2216,3648,3832,3888,3976,3232,3096,3536,3432,5888,6072,5744,5832,5600,5464,5264,5160,4800,4728,5040,4872,4128,4248,4432,4584,7296,7224,7664,7496,7776,7896,7952,8104,6464,6648,6192,6280,7072,6936,6864,6760,11776,11960,12144,12232,11488,11352,11664,11560,11200,11128,10928,10760,10528,10648,10320,10472,9600,9528,9456,9288,10080,10200,9744,9896,8256,8440,8496,8584,8864,8728,9168,9064,14592,14776,14448,14536,15328,15192,14992,14888,15552,15480,15792,15624,15904,16024,16208,16360,12928,12856,13296,13128,12384,12504,12560,12712,14144,14328,13872,13960,13728,13592,13520,13416,23552,23736,23920,24008,24288,24152,24464,24360,22976,22904,22704,22536,23328,23448,23120,23272,22400,22328,22256,22088,21856,21976,21520,21672,21056,21240,21296,21384,20640,20504,20944,20840,19200,19384,19056,19144,18912,18776,18576,18472,20160,20088,20400,20232,19488,19608,19792,19944,16512,16440,16880,16712,16992,17112,17168,17320,17728,17912,17456,17544,18336,18200,18128,18024,29184,29368,29552,29640,28896,28760,29072,28968,30656,30584,30384,30216,29984,30104,29776,29928,31104,31032,30960,30792,31584,31704,31248,31400,31808,31992,32048,32136,32416,32280,32720,32616,25856,26040,25712,25800,26592,26456,26256,26152,24768,24696,25008,24840,25120,25240,25424,25576,28288,28216,28656,28488,27744,27864,27920,28072,27456,27640,27184,27272,27040,26904,26832,26728},{0,185,370,459,740,605,918,815,1480,1393,1210,1027,1836,1941,1630,1767,2960,2857,2786,2651,2420,2509,2054,2239,3672,3809,3882,3987,3260,3077,3534,3447,5920,6041,5714,5867,5572,5501,5302,5135,4840,4689,5018,4899,4108,4277,4478,4551,7344,7177,7618,7547,7764,7917,7974,8095,6520,6593,6154,6323,7068,6949,6894,6743,11840,12025,12082,12171,11428,11293,11734,11631,11144,11057,11002,10819,10604,10709,10270,10407,9680,9577,9378,9243,10036,10125,9798,9983,8216,8353,8554,8659,8956,8773,9102,9015,14688,14809,14354,14507,15236,15165,15094,14927,15528,15377,15834,15715,15948,16117,16190,16263,13040,12873,13186,13115,12308,12461,12646,12767,14136,14209,13898,14067,13788,13669,13486,13335,23680,23609,24050,23883,24164,24285,24342,24495,22856,23025,22586,22659,23468,23317,23262,23143,22288,22441,22114,22235,22004,21837,21638,21567,21208,21089,21418,21267,20540,20613,20814,20983,19360,19225,19154,19051,18756,18941,18486,18575,20072,20177,20250,20387,19596,19509,19966,19783,16432,16521,16706,16891,17108,17005,17318,17183,17912,17729,17546,17459,18204,18341,18030,18135,29376,29305,29618,29451,28708,28829,29014,29167,30472,30641,30330,30403,30188,30037,29854,29735,31056,31209,30754,30875,31668,31501,31430,31359,31896,31777,32234,32083,32380,32453,32526,32695,26080,25945,25746,25643,26372,26557,26230,26319,24616,24721,24922,25059,25292,25205,25534,25351,28272,28361,28418,28603,27796,27693,28134,27999,27576,27393,27338,27251,26972,27109,26670,26775},{0,186,372,462,744,594,924,806,1488,1386,1188,1054,1848,1922,1612,1782,2976,2842,2772,2670,2376,2546,2108,2182,3696,3786,3844,4030,3224,3106,3564,3414,5952,6138,5684,5774,5544,5394,5340,5222,4752,4650,5092,4958,4216,4290,4364,4534,7392,7258,7572,7470,7688,7858,8060,8134,6448,6538,6212,6398,7128,7010,6828,6678,11904,11834,12276,12110,11368,11474,11548,11686,11088,11242,10788,10910,10680,10498,10444,10358,9504,9626,9300,9454,10184,10098,9916,9734,8432,8266,8580,8510,8728,8866,9068,9174,14784,14714,14516,14350,15144,15250,14940,15078,15376,15530,15716,15838,16120,15938,16268,16182,12896,13018,13076,13230,12424,12338,12796,12614,14256,14090,14020,13950,13656,13794,13356,13462,23808,23994,23668,23758,24552,24402,24220,24102,22736,22634,22948,22814,23096,23170,23372,23542,22176,22042,22484,22382,21576,21746,21820,21894,21360,21450,20996,21182,20888,20770,20716,20566,19008,19194,19252,19342,18600,18450,18908,18790,20368,20266,20196,20062,19832,19906,19468,19638,16864,16730,16532,16430,17160,17330,17020,17094,17456,17546,17732,17918,18136,18018,18348,18198,29568,29498,29428,29262,29032,29138,28700,28838,30288,30442,30500,30622,29880,29698,30156,30070,30752,30874,31060,31214,31432,31346,31676,31494,32240,32074,31876,31806,32536,32674,32364,32470,25792,25722,26036,25870,26152,26258,26460,26598,24848,25002,24676,24798,25592,25410,25228,25142,28512,28634,28180,28334,28040,27954,27900,27718,27312,27146,27588,27518,26712,26850,26924,27030},{0,187,374,461,748,599,922,801,1496,1379,1198,1045,1844,1935,1602,1785,2992,2827,2758,2685,2396,2535,2090,2193,3688,3795,3870,4005,3204,3135,3570,3401,5984,6107,5654,5805,5516,5431,5370,5185,4792,4611,5070,4981,4180,4335,4386,4505,7376,7275,7590,7453,7740,7815,8010,8177,6408,6579,6270,6341,7140,7007,6802,6697,11968,11899,12214,12045,11308,11415,11610,11745,11032,11171,10862,10965,10740,10575,10370,10297,9584,9675,9222,9405,10140,10023,9962,9809,8360,8211,8670,8549,8772,8959,9010,9097,14752,14619,14550,14445,15180,15351,14906,14977,15480,15555,15630,15797,16020,15919,16354,16217,12816,12971,13158,13277,12540,12359,12682,12593,14280,14195,14014,13829,13604,13727,13394,13545,23936,23867,23798,23629,24428,24535,24090,24225,22616,22755,22830,22933,23220,23055,23490,23417,22064,22155,22342,22525,21724,21607,21930,21777,21480,21331,21150,21029,20740,20927,20594,20681,19168,19035,19350,19245,18444,18615,18810,18881,20280,20355,20046,20213,19924,19823,19618,19481,16720,16875,16422,16541,17340,17159,17098,17009,17544,17459,17918,17733,18020,18143,18194,18345,29504,29691,29238,29325,29100,28951,28890,28769,30360,30243,30702,30549,29812,29903,29954,30137,30960,30795,31110,31037,31260,31399,31594,31697,32040,32147,31838,31973,32708,32639,32434,32265,25632,25755,25942,26093,26316,26231,26554,26369,25080,24899,24718,24629,25364,25519,25186,25305,28560,28459,28390,28253,28028,28103,27658,27825,27208,27379,27454,27525,26788,26655,27090,26985},{0,188,376,452,752,588,904,820,1504,1372,1176,1060,1808,1964,1640,1748,3008,2940,2744,2564,2352,2444,2120,2292,3616,3740,3928,4068,3280,3180,3496,3348,6016,5948,5880,5700,5488,5580,5128,5300,4704,4828,4888,5028,4240,4140,4584,4436,7232,7420,7480,7556,7856,7692,8136,8052,6560,6428,6360,6244,6992,7148,6696,6804,12032,12220,11896,11972,11760,11596,11400,11316,10976,10844,11160,11044,10256,10412,10600,10708,9408,9340,9656,9476,9776,9868,10056,10228,8480,8604,8280,8420,9168,9068,8872,8724,14464,14396,14840,14660,14960,15052,15112,15284,15712,15836,15384,15524,16272,16172,16104,15956,13120,13308,12856,12932,12720,12556,12488,12404,13984,13852,14296,14180,13392,13548,13608,13716,24064,24252,24440,24516,23792,23628,23944,23860,23520,23388,23192,23076,22800,22956,22632,22740,21952,21884,21688,21508,22320,22412,22088,22260,20512,20636,20824,20964,21200,21100,21416,21268,18816,18748,18680,18500,19312,19404,18952,19124,19552,19676,19736,19876,20112,20012,20456,20308,16960,17148,17208,17284,16560,16396,16840,16756,18336,18204,18136,18020,17744,17900,17448,17556,28928,29116,28792,28868,29680,29516,29320,29236,29920,29788,30104,29988,30224,30380,30568,30676,31424,31356,31672,31492,30768,30860,31048,31220,32544,32668,32344,32484,32208,32108,31912,31764,26240,26172,26616,26436,25712,25804,25864,26036,25440,25564,25112,25252,24976,24876,24808,24660,27968,28156,27704,27780,28592,28428,28360,28276,26784,26652,27096,26980,27216,27372,27432,27540},{0,189,378,455,756,585,910,819,1512,1365,1170,1071,1820,1953,1638,1755,3024,2925,2730,2583,2340,2457,2142,2275,3640,3717,3906,4095,3276,3185,3510,3339,6048,5917,5850,5735,5460,5609,5166,5267,4680,4853,4914,5007,4284,4097,4550,4475,7280,7373,7434,7607,7812,7737,8190,8003,6552,6437,6370,6239,7020,7121,6678,6827,12096,12285,11834,11911,11700,11529,11470,11379,10920,10773,11218,11119,10332,10465,10534,10651,9360,9261,9706,9559,9828,9945,10014,10147,8568,8645,8194,8383,9100,9009,8950,8779,14560,14429,14746,14631,14868,15017,15214,15315,15624,15797,15474,15567,16380,16193,16006,15931,13104,13197,12874,13047,12740,12665,12478,12291,14040,13925,14242,14111,13356,13457,13654,13803,24192,24125,24570,24391,23668,23753,23822,23987,23400,23509,23058,23215,22940,22817,22758,22619,21840,21997,21546,21655,22436,22297,22238,22115,20664,20485,20930,20863,21068,21233,21302,21387,18720,18845,18522,18663,19412,19305,19118,18963,19656,19573,19890,19727,20028,20097,20294,20475,17136,16973,17290,17207,16388,16569,16766,16835,18200,18341,18018,18143,17900,17745,17558,17451,29120,29053,28858,28679,29492,29577,29262,29427,29736,29845,30034,30191,30428,30305,30630,30491,31248,31405,31594,31703,30948,30809,31134,31011,32760,32581,32386,32319,32012,32177,31862,31947,26208,26333,26394,26535,25748,25641,26094,25939,25480,25397,25330,25167,24956,25025,24582,24763,28080,27917,27850,27767,28484,28665,28222,28291,26712,26853,26914,27039,27308,27153,27606,27499},{0,190,380,450,760,582,900,826,1520,1358,1164,1074,1800,1974,1652,1738,3040,2910,2716,2594,2328,2470,2148,2266,3600,3758,3948,4050,3304,3158,3476,3370,6080,6014,5820,5634,5432,5510,5188,5370,4656,4750,4940,5106,4296,4214,4532,4362,7200,7326,7516,7650,7896,7782,8100,7962,6608,6510,6316,6162,6952,7062,6740,6890,12160,12094,12028,11842,11640,11718,11268,11450,10864,10958,11020,11186,10376,10294,10740,10570,9312,9438,9500,9634,9880,9766,10212,10074,8592,8494,8428,8274,9064,9174,8724,8874,14400,14590,14652,14722,15032,14854,15300,15226,15792,15630,15564,15474,16200,16374,15924,16010,13216,13086,13020,12898,12632,12774,12324,12442,13904,14062,14124,14226,13480,13334,13780,13674,24320,24510,24188,24258,24056,23878,23684,23610,23280,23118,23436,23346,22536,22710,22900,22986,21728,21598,21916,21794,22040,22182,22372,22490,20752,20910,20588,20690,21480,21334,21140,21034,18624,18558,18876,18690,19000,19078,19268,19450,19760,19854,19532,19698,20424,20342,20148,19978,17184,17310,16988,17122,16856,16742,16548,16410,18128,18030,18348,18194,17448,17558,17748,17898,28800,28734,29180,28994,29304,29382,29444,29626,30064,30158,29708,29874,30600,30518,30452,30282,31584,31710,31260,31394,31128,31014,30948,30810,32400,32302,32748,32594,31848,31958,32020,32170,26432,26622,26172,26242,26040,25862,25796,25722,25264,25102,25548,25458,24648,24822,24884,24970,27808,27678,28124,28002,28248,28390,28452,28570,26960,27118,26668,26770,27560,27414,27348,27242},{0,191,382,449,764,579,898,829,1528,1351,1158,1081,1796,1979,1658,1733,3056,2895,2702,2609,2316,2483,2162,2253,3592,3767,3958,4041,3316,3147,3466,3381,6112,5983,5790,5665,5404,5539,5218,5341,4632,4775,4966,5081,4324,4187,4506,4389,7184,7343,7534,7633,7916,7763,8082,7981,6632,6487,6294,6185,6932,7083,6762,6869,12224,12159,11966,11777,11580,11651,11330,11517,10808,10887,11078,11257,10436,10363,10682,10501,9264,9359,9550,9713,9932,9843,10162,9997,8648,8567,8374,8201,9012,9099,8778,8949,14368,14495,14686,14817,15068,14947,15266,15133,15832,15719,15526,15385,16164,16283,15962,16101,13264,13167,12974,12817,12588,12691,12370,12525,13864,13975,14166,14313,13524,13419,13738,13589,24448,24383,24318,24129,23932,24003,23554,23741,23160,23239,23302,23481,22660,22587,23034,22853,21616,21711,21774,21937,22156,22067,22514,22349,20872,20791,20726,20553,21364,21451,21002,21173,18528,18655,18718,18849,19100,18979,19426,19293,19864,19751,19686,19545,20324,20443,19994,20133,17296,17199,17134,16977,16748,16851,16402,16557,18024,18135,18198,18345,17556,17451,17898,17749,28736,28927,28990,29057,29372,29187,29634,29565,30136,29959,29894,29817,30532,30715,30266,30341,31664,31503,31438,31345,31052,31219,30770,30861,32328,32503,32566,32649,31924,31755,32202,32117,26528,26399,26334,26209,25948,26083,25634,25757,25176,25319,25382,25497,24740,24603,25050,24933,27728,27887,27950,28049,28332,28179,28626,28525,27048,26903,26838,26729,27476,27627,27178,27285},{0,192,384,320,768,960,640,576,1536,1728,1920,1856,1280,1472,1152,1088,3072,3264,3456,3392,3840,4032,3712,3648,2560,2752,2944,2880,2304,2496,2176,2112,6144,6336,6528,6464,6912,7104,6784,6720,7680,7872,8064,8000,7424,7616,7296,7232,5120,5312,5504,5440,5888,6080,5760,5696,4608,4800,4992,4928,4352,4544,4224,4160,12288,12480,12672,12608,13056,13248,12928,12864,13824,14016,14208,14144,13568,13760,13440,13376,15360,15552,15744,15680,16128,16320,16000,15936,14848,15040,15232,15168,14592,14784,14464,14400,10240,10432,10624,10560,11008,11200,10880,10816,11776,11968,12160,12096,11520,11712,11392,11328,9216,9408,9600,9536,9984,10176,9856,9792,8704,8896,9088,9024,8448,8640,8320,8256,24576,24768,24960,24896,25344,25536,25216,25152,26112,26304,26496,26432,25856,26048,25728,25664,27648,27840,28032,27968,28416,28608,28288,28224,27136,27328,27520,27456,26880,27072,26752,26688,30720,30912,31104,31040,31488,31680,31360,31296,32256,32448,32640,32576,32000,32192,31872,31808,29696,29888,30080,30016,30464,30656,30336,30272,29184,29376,29568,29504,28928,29120,28800,28736,20480,20672,20864,20800,21248,21440,21120,21056,22016,22208,22400,22336,21760,21952,21632,21568,23552,23744,23936,23872,24320,24512,24192,24128,23040,23232,23424,23360,22784,22976,22656,22592,18432,18624,18816,18752,19200,19392,19072,19008,19968,20160,20352,20288,19712,19904,19584,19520,17408,17600,17792,17728,18176,18368,18048,17984,16896,17088,17280,17216,16640,16832,16512,16448},{0,193,386,323,772,965,646,583,1544,1737,1930,1867,1292,1485,1166,1103,3088,3281,3474,3411,3860,4053,3734,3671,2584,2777,2970,2907,2332,2525,2206,2143,6176,6369,6562,6499,6948,7141,6822,6759,7720,7913,8106,8043,7468,7661,7342,7279,5168,5361,5554,5491,5940,6133,5814,5751,4664,4857,5050,4987,4412,4605,4286,4223,12352,12417,12738,12547,13124,13189,12998,12807,13896,13961,14282,14091,13644,13709,13518,13327,15440,15505,15826,15635,16212,16277,16086,15895,14936,15001,15322,15131,14684,14749,14558,14367,10336,10401,10722,10531,11108,11173,10982,10791,11880,11945,12266,12075,11628,11693,11502,11311,9328,9393,9714,9523,10100,10165,9974,9783,8824,8889,9210,9019,8572,8637,8446,8255,24704,24641,24834,25027,25476,25413,25094,25287,26248,26185,26378,26571,25996,25933,25614,25807,27792,27729,27922,28115,28564,28501,28182,28375,27288,27225,27418,27611,27036,26973,26654,26847,30880,30817,31010,31203,31652,31589,31270,31463,32424,32361,32554,32747,32172,32109,31790,31983,29872,29809,30002,30195,30644,30581,30262,30455,29368,29305,29498,29691,29116,29053,28734,28927,20672,20481,20802,20867,21444,21253,21062,21127,22216,22025,22346,22411,21964,21773,21582,21647,23760,23569,23890,23955,24532,24341,24150,24215,23256,23065,23386,23451,23004,22813,22622,22687,18656,18465,18786,18851,19428,19237,19046,19111,20200,20009,20330,20395,19948,19757,19566,19631,17648,17457,17778,17843,18420,18229,18038,18103,17144,16953,17274,17339,16892,16701,16510,16575},{0,194,388,326,776,970,652,590,1552,1746,1940,1878,1304,1498,1180,1118,3104,3298,3492,3430,3880,4074,3756,3694,2608,2802,2996,2934,2360,2554,2236,2174,6208,6274,6596,6406,6984,7050,6860,6670,7760,7826,8148,7958,7512,7578,7388,7198,5216,5282,5604,5414,5992,6058,5868,5678,4720,4786,5108,4918,4472,4538,4348,4158,12416,12354,12548,12742,13192,13130,12812,13006,13968,13906,14100,14294,13720,13658,13340,13534,15520,15458,15652,15846,16296,16234,15916,16110,15024,14962,15156,15350,14776,14714,14396,14590,10432,10242,10564,10630,11208,11018,10828,10894,11984,11794,12116,12182,11736,11546,11356,11422,9440,9250,9572,9638,10216,10026,9836,9902,8944,8754,9076,9142,8696,8506,8316,8382,24832,25026,24708,24646,25096,25290,25484,25422,26384,26578,26260,26198,25624,25818,26012,25950,27936,28130,27812,27750,28200,28394,28588,28526,27440,27634,27316,27254,26680,26874,27068,27006,31040,31106,30916,30726,31304,31370,31692,31502,32592,32658,32468,32278,31832,31898,32220,32030,30048,30114,29924,29734,30312,30378,30700,30510,29552,29618,29428,29238,28792,28858,29180,28990,20864,20802,20484,20678,21128,21066,21260,21454,22416,22354,22036,22230,21656,21594,21788,21982,23968,23906,23588,23782,24232,24170,24364,24558,23472,23410,23092,23286,22712,22650,22844,23038,18880,18690,18500,18566,19144,18954,19276,19342,20432,20242,20052,20118,19672,19482,19804,19870,17888,17698,17508,17574,18152,17962,18284,18350,17392,17202,17012,17078,16632,16442,16764,16830},{0,195,390,325,780,975,650,585,1560,1755,1950,1885,1300,1495,1170,1105,3120,3315,3510,3445,3900,4095,3770,3705,2600,2795,2990,2925,2340,2535,2210,2145,6240,6307,6630,6437,7020,7087,6890,6697,7800,7867,8190,7997,7540,7607,7410,7217,5200,5267,5590,5397,5980,6047,5850,5657,4680,4747,5070,4877,4420,4487,4290,4097,12480,12291,12614,12677,13260,13071,12874,12937,14040,13851,14174,14237,13780,13591,13394,13457,15600,15411,15734,15797,16380,16191,15994,16057,15080,14891,15214,15277,14820,14631,14434,14497,10400,10339,10534,10725,11180,11119,10794,10985,11960,11899,12094,12285,11700,11639,11314,11505,9360,9299,9494,9685,10140,10079,9754,9945,8840,8779,8974,9165,8580,8519,8194,8385,24960,24899,24582,24773,25228,25167,25354,25545,26520,26459,26142,26333,25748,25687,25874,26065,28080,28019,27702,27893,28348,28287,28474,28665,27560,27499,27182,27373,26788,26727,26914,27105,31200,31011,30822,30885,31468,31279,31594,31657,32760,32571,32382,32445,31988,31799,32114,32177,30160,29971,29782,29845,30428,30239,30554,30617,29640,29451,29262,29325,28868,28679,28994,29057,20800,20867,20678,20485,21068,21135,21450,21257,22360,22427,22238,22045,21588,21655,21970,21777,23920,23987,23798,23605,24188,24255,24570,24377,23400,23467,23278,23085,22628,22695,23010,22817,18720,18915,18598,18533,18988,19183,19370,19305,20280,20475,20158,20093,19508,19703,19890,19825,17680,17875,17558,17493,17948,18143,18330,18265,17160,17355,17038,16973,16388,16583,16770,16705},{0,196,392,332,784,980,664,604,1568,1764,1960,1900,1328,1524,1208,1148,3136,3204,3528,3340,3920,3988,3800,3612,2656,2724,3048,2860,2416,2484,2296,2108,6272,6212,6408,6604,7056,6996,6680,6876,7840,7780,7976,8172,7600,7540,7224,7420,5312,5124,5448,5516,6096,5908,5720,5788,4832,4644,4968,5036,4592,4404,4216,4284,12544,12740,12424,12364,12816,13012,13208,13148,14112,14308,13992,13932,13360,13556,13752,13692,15680,15748,15560,15372,15952,16020,16344,16156,15200,15268,15080,14892,14448,14516,14840,14652,10624,10564,10248,10444,10896,10836,11032,11228,12192,12132,11816,12012,11440,11380,11576,11772,9664,9476,9288,9356,9936,9748,10072,10140,9184,8996,8808,8876,8432,8244,8568,8636,25088,25284,25480,25420,24848,25044,24728,24668,25632,25828,26024,25964,26416,26612,26296,26236,28224,28292,28616,28428,27984,28052,27864,27676,26720,26788,27112,26924,27504,27572,27384,27196,31360,31300,31496,31692,31120,31060,30744,30940,31904,31844,32040,32236,32688,32628,32312,32508,30400,30212,30536,30604,30160,29972,29784,29852,28896,28708,29032,29100,29680,29492,29304,29372,21248,21444,21128,21068,20496,20692,20888,20828,21792,21988,21672,21612,22064,22260,22456,22396,24384,24452,24264,24076,23632,23700,24024,23836,22880,22948,22760,22572,23152,23220,23544,23356,19328,19268,18952,19148,18576,18516,18712,18908,19872,19812,19496,19692,20144,20084,20280,20476,18368,18180,17992,18060,17616,17428,17752,17820,16864,16676,16488,16556,17136,16948,17272,17340},{0,197,394,335,788,977,670,603,1576,1773,1954,1895,1340,1529,1206,1139,3152,3221,3546,3359,3908,3969,3790,3595,2680,2749,3058,2871,2412,2473,2278,2083,6304,6245,6442,6639,7092,7025,6718,6907,7816,7757,7938,8135,7580,7513,7190,7379,5360,5173,5498,5567,6116,5921,5742,5803,4824,4637,4946,5015,4556,4361,4166,4227,12608,12677,12490,12303,12884,12945,13278,13083,14184,14253,14050,13863,13436,13497,13814,13619,15632,15829,15514,15455,15876,16065,16270,16203,15160,15357,15026,14967,14380,14569,14758,14691,10720,10533,10346,10415,10996,10801,11134,11195,12232,12045,11842,11911,11484,11289,11606,11667,9648,9589,9274,9471,9892,9825,10030,10219,9112,9053,8722,8919,8332,8265,8454,8643,25216,25157,25354,25551,24980,24913,24606,24795,25768,25709,25890,26087,26556,26489,26166,26355,28368,28181,28506,28575,28100,27905,27726,27787,26872,26685,26994,27063,27628,27433,27238,27299,31264,31461,31658,31599,31028,31217,30910,30843,31752,31949,32130,32071,32540,32729,32406,32339,30320,30389,30714,30527,30052,30113,29934,29739,28760,28829,29138,28951,29516,29577,29382,29187,21440,21253,21066,21135,20692,20497,20830,20891,21992,21805,21602,21671,22268,22073,22390,22451,24464,24405,24090,24287,23684,23617,23822,24011,22968,22909,22578,22775,23212,23145,23334,23523,19296,19365,19178,18991,18548,18609,18942,18747,19784,19853,19650,19463,20060,20121,20438,20243,18224,18421,18106,18047,17444,17633,17838,17771,16664,16861,16530,16471,16908,17097,17286,17219},{0,198,396,330,792,990,660,594,1584,1782,1980,1914,1320,1518,1188,1122,3168,3238,3564,3370,3960,4030,3828,3634,2640,2710,3036,2842,2376,2446,2244,2050,6336,6150,6476,6538,7128,6942,6740,6802,7920,7734,8060,8122,7656,7470,7268,7330,5280,5222,5420,5610,6072,6014,5684,5874,4752,4694,4892,5082,4488,4430,4100,4290,12672,12614,12300,12490,12952,12894,13076,13266,14256,14198,13884,14074,13480,13422,13604,13794,15840,15654,15468,15530,16120,15934,16244,16306,15312,15126,14940,15002,14536,14350,14660,14722,10560,10630,10444,10250,10840,10910,11220,11026,12144,12214,12028,11834,11368,11438,11748,11554,9504,9702,9388,9322,9784,9982,10164,10098,8976,9174,8860,8794,8200,8398,8580,8514,25344,25542,25228,25162,24600,24798,24980,24914,25904,26102,25788,25722,26152,26350,26532,26466,28512,28582,28396,28202,27768,27838,28148,27954,26960,27030,26844,26650,27208,27278,27588,27394,31680,31494,31308,31370,30936,30750,31060,31122,32240,32054,31868,31930,32488,32302,32612,32674,30624,30566,30252,30442,29880,29822,30004,30194,29072,29014,28700,28890,29320,29262,29444,29634,21120,21062,21260,21450,20888,20830,20500,20690,21680,21622,21820,22010,22440,22382,22052,22242,24288,24102,24428,24490,24056,23870,23668,23730,22736,22550,22876,22938,23496,23310,23108,23170,19008,19078,19404,19210,18776,18846,18644,18450,19568,19638,19964,19770,20328,20398,20196,20002,17952,18150,18348,18282,17720,17918,17588,17522,16400,16598,16796,16730,17160,17358,17028,16962},{0,199,398,329,796,987,658,597,1592,1791,1974,1905,1316,1507,1194,1133,3184,3255,3582,3385,3948,4011,3810,3621,2632,2703,3014,2817,2388,2451,2266,2077,6368,6183,6510,6569,7164,6971,6770,6837,7896,7711,8022,8081,7620,7427,7242,7309,5264,5207,5406,5593,6028,5963,5634,5829,4776,4719,4902,5089,4532,4467,4154,4349,12736,12551,12366,12425,13020,12827,13138,13205,14328,14143,13942,14001,13540,13347,13674,13741,15792,15735,15422,15609,16044,15979,16162,16357,15240,15183,14854,15041,14484,14419,14618,14813,10528,10727,10414,10345,10812,11003,11186,11125,12056,12255,11926,11857,11268,11459,11658,11597,9552,9623,9438,9241,9804,9867,10178,9989,9064,9135,8934,8737,8308,8371,8698,8509,25472,25415,25102,25289,24732,24667,24850,25045,26040,25983,25654,25841,26276,26211,26410,26605,28656,28471,28286,28345,27884,27691,28002,28069,27080,26895,26694,26753,27348,27155,27482,27549,31584,31655,31470,31273,30844,30907,31218,31029,32088,32159,31958,31761,32324,32387,32714,32525,30480,30679,30366,30297,29708,29899,30082,30021,28968,29167,28838,28769,29236,29427,29626,29565,21056,21127,21454,21257,20828,20891,20690,20501,21624,21695,22006,21809,22372,22435,22250,22061,24112,24311,24510,24441,23852,24043,23714,23653,22536,22735,22918,22849,23316,23507,23194,23133,19104,19047,19246,19433,18876,18811,18482,18677,19608,19551,19734,19921,20356,20291,19978,20173,18128,17943,18270,18329,17868,17675,17474,17541,16616,16431,16742,16801,17396,17203,17018,17085},{0,200,400,344,800,1000,688,632,1600,1672,2000,1816,1376,1448,1264,1080,3200,3144,3344,3544,4000,3944,3632,3832,2752,2568,2896,2968,2528,2344,2160,2232,6400,6600,6288,6232,6688,6888,7088,7032,8000,8072,7888,7704,7264,7336,7664,7480,5504,5448,5136,5336,5792,5736,5936,6136,5056,4872,4688,4760,4320,4136,4464,4536,12800,13000,13200,13144,12576,12776,12464,12408,13376,13448,13776,13592,14176,14248,14064,13880,16000,15944,16144,16344,15776,15720,15408,15608,14528,14344,14672,14744,15328,15144,14960,15032,11008,11208,10896,10840,10272,10472,10672,10616,11584,11656,11472,11288,11872,11944,12272,12088,10112,10056,9744,9944,9376,9320,9520,9720,8640,8456,8272,8344,8928,8744,9072,9144,25600,25800,26000,25944,26400,26600,26288,26232,25152,25224,25552,25368,24928,25000,24816,24632,26752,26696,26896,27096,27552,27496,27184,27384,28352,28168,28496,28568,28128,27944,27760,27832,32000,32200,31888,31832,32288,32488,32688,32632,31552,31624,31440,31256,30816,30888,31216,31032,29056,29000,28688,28888,29344,29288,29488,29688,30656,30472,30288,30360,29920,29736,30064,30136,22016,22216,22416,22360,21792,21992,21680,21624,20544,20616,20944,20760,21344,21416,21232,21048,23168,23112,23312,23512,22944,22888,22576,22776,23744,23560,23888,23960,24544,24360,24176,24248,20224,20424,20112,20056,19488,19688,19888,19832,18752,18824,18640,18456,19040,19112,19440,19256,17280,17224,16912,17112,16544,16488,16688,16888,17856,17672,17488,17560,18144,17960,18288,18360},{0,201,402,347,804,1005,694,639,1608,1665,2010,1811,1388,1445,1278,1079,3216,3161,3330,3531,4020,3965,3622,3823,2776,2577,2890,2947,2556,2357,2158,2215,6432,6633,6322,6267,6660,6861,7062,7007,8040,8097,7930,7731,7244,7301,7646,7447,5552,5497,5154,5355,5780,5725,5894,6095,5112,4913,4714,4771,4316,4117,4430,4487,12864,12937,13266,13083,12644,12717,12534,12351,13320,13505,13722,13651,14124,14309,14014,13943,16080,15897,16194,16267,15860,15677,15462,15535,14488,14417,14602,14787,15292,15221,14894,15079,11104,11177,10994,10811,10308,10381,10710,10527,11560,11745,11450,11379,11788,11973,12190,12119,10224,10041,9826,9899,9428,9245,9542,9615,8632,8561,8234,8419,8860,8789,8974,9159,25728,25673,25874,26075,26532,26477,26166,26367,25288,25089,25434,25491,25068,24869,24702,24759,26640,26841,27010,26955,27444,27645,27302,27247,28248,28305,28618,28419,28028,28085,27886,27687,32160,32105,31794,31995,32388,32333,32534,32735,31720,31521,31354,31411,30924,30725,31070,31127,28976,29177,28834,28779,29204,29405,29574,29519,30584,30641,30442,30243,29788,29845,30158,29959,22208,22025,22354,22427,21988,21805,21622,21695,20616,20545,20762,20947,21420,21349,21054,21239,23120,23193,23490,23307,22900,22973,22758,22575,23576,23761,23946,23875,24380,24565,24238,24167,20448,20265,20082,20155,19652,19469,19798,19871,18856,18785,18490,18675,19084,19013,19230,19415,17264,17337,17122,16939,16468,16541,16838,16655,17720,17905,17578,17507,17948,18133,18318,18247},{0,202,404,350,808,994,700,630,1616,1690,1988,1806,1400,1458,1260,1062,3232,3178,3380,3582,3976,3906,3612,3798,2800,2618,2916,2990,2520,2322,2124,2182,6464,6538,6356,6174,6760,6818,7164,6966,7952,8154,7812,7758,7224,7410,7596,7526,5600,5418,5236,5310,5832,5634,5980,6038,5040,4986,4644,4846,4248,4178,4364,4550,12928,12874,13076,13278,12712,12642,12348,12534,13520,13338,13636,13710,14328,14130,13932,13990,15904,16106,16308,16254,15624,15810,15516,15446,14448,14522,14820,14638,15192,15250,15052,14854,11200,11018,10836,10910,10472,10274,10620,10678,11664,11610,11268,11470,11960,11890,12076,12262,10080,10154,9972,9790,9288,9346,9692,9494,8496,8698,8356,8302,8728,8914,9100,9030,25856,26058,25748,25694,26152,26338,26556,26486,25424,25498,25284,25102,24696,24754,25068,24870,27040,26986,26676,26878,27272,27202,27420,27606,28656,28474,28260,28334,27864,27666,27980,28038,31808,31882,32212,32030,32616,32674,32508,32310,31248,31450,31620,31566,31032,31218,30892,30822,28896,28714,29044,29118,29640,29442,29276,29334,30384,30330,30500,30702,30104,30034,29708,29894,22400,22346,22036,22238,21672,21602,21820,22006,20944,20762,20548,20622,21240,21042,21356,21414,23328,23530,23220,23166,22536,22722,22940,22870,23920,23994,23780,23598,24152,24210,24524,24326,20160,19978,20308,20382,19944,19746,19580,19638,18576,18522,18692,18894,19384,19314,18988,19174,16992,17066,17396,17214,16712,16770,16604,16406,17456,17658,17828,17774,18200,18386,18060,17990},{0,203,406,349,812,999,698,625,1624,1683,1998,1797,1396,1471,1250,1065,3248,3195,3366,3565,3996,3927,3594,3777,2792,2595,2942,2997,2500,2319,2130,2201,6496,6571,6390,6205,6732,6791,7130,6929,7992,8179,7854,7781,7188,7391,7554,7497,5584,5403,5190,5261,5884,5687,5994,6049,5000,4931,4638,4821,4260,4207,4402,4601,12992,12811,13142,13213,12780,12583,12410,12465,13464,13395,13582,13765,14260,14207,13858,14057,15984,16059,16358,16173,15708,15767,15562,15361,14376,14563,14782,14709,15108,15311,14994,14937,11168,11115,10806,11005,10380,10311,10522,10705,11768,11571,11374,11429,11988,11807,12098,12169,10000,10203,9862,9805,9276,9463,9642,9569,8520,8579,8414,8213,8804,8879,9202,9017,25984,25931,25622,25821,26284,26215,26426,26609,25560,25363,25166,25221,24820,24639,24930,25001,26928,27131,26790,26733,27164,27351,27530,27457,28520,28579,28414,28213,27716,27791,28114,27929,31968,31787,32118,32189,32716,32519,32346,32401,31416,31347,31534,31717,31124,31071,30722,30921,28752,28827,29126,28941,29564,29623,29418,29217,30216,30403,30622,30549,29988,30191,29874,29817,22336,22411,22230,22045,21612,21671,22010,21809,20760,20947,20622,20549,21044,21247,21410,21353,23536,23355,23142,23213,22748,22551,22858,22913,23976,23907,23614,23797,24196,24143,24338,24537,20000,20203,20406,20349,19724,19911,19610,19537,18552,18611,18926,18725,19284,19359,19138,18953,17040,16987,17158,17357,16828,16759,16426,16609,17608,17411,17758,17813,18404,18223,18034,18105},{0,204,408,340,816,1020,680,612,1632,1708,2040,1844,1360,1436,1224,1028,3264,3084,3416,3476,4080,3900,3688,3748,2720,2668,2872,3060,2448,2396,2056,2244,6528,6476,6168,6356,6832,6780,6952,7140,8160,7980,7800,7860,7376,7196,7496,7556,5440,5516,5336,5140,5744,5820,6120,5924,4896,5100,4792,4724,4112,4316,4488,4420,13056,13260,12952,12884,12336,12540,12712,12644,13664,13740,13560,13364,13904,13980,14280,14084,16320,16140,15960,16020,15600,15420,15720,15780,14752,14700,14392,14580,14992,14940,15112,15300,10880,10828,11032,11220,10672,10620,10280,10468,11488,11308,11640,11700,12240,12060,11848,11908,9792,9868,10200,10004,9584,9660,9448,9252,8224,8428,8632,8564,8976,9180,8840,8772,26112,26316,26520,26452,25904,26108,25768,25700,24672,24748,25080,24884,25424,25500,25288,25092,27328,27148,27480,27540,27120,26940,26728,26788,27808,27756,27960,28148,28560,28508,28168,28356,32640,32588,32280,32468,31920,31868,32040,32228,31200,31020,30840,30900,31440,31260,31560,31620,29504,29580,29400,29204,28784,28860,29160,28964,29984,30188,29880,29812,30224,30428,30600,30532,21760,21964,21656,21588,22064,22268,22440,22372,21344,21420,21240,21044,20560,20636,20936,20740,22976,22796,22616,22676,23280,23100,23400,23460,24480,24428,24120,24308,23696,23644,23816,24004,19584,19532,19736,19924,20400,20348,20008,20196,19168,18988,19320,19380,18896,18716,18504,18564,16448,16524,16856,16660,17264,17340,17128,16932,17952,18156,18360,18292,17680,17884,17544,17476},{0,205,410,343,820,1017,686,611,1640,1701,2034,1855,1372,1425,1222,1035,3280,3101,3402,3463,4068,3881,3710,3763,2744,2677,2850,3055,2444,2369,2070,2267,6560,6509,6202,6391,6804,6745,6926,7107,8136,7941,7762,7839,7420,7217,7526,7595,5488,5565,5354,5159,5700,5769,6110,5907,4888,5077,4738,4687,4140,4321,4534,4475,13120,13197,13018,12823,12404,12473,12782,12579,13608,13797,13490,13439,13852,14033,14214,14155,16272,16221,15882,16071,15524,15465,15678,15859,14840,14645,14434,14511,15052,14849,15190,15259,10976,10797,11130,11191,10708,10521,10318,10371,11400,11333,11538,11743,12220,12145,11814,12011,9776,9981,10154,10087,9476,9673,9374,9299,8280,8341,8642,8463,9068,9121,8950,8763,26240,26189,26394,26583,26036,25977,25646,25827,24808,24613,24946,25023,25564,25361,25158,25227,27216,27293,27594,27399,26980,27049,26878,26675,27704,27893,28066,28015,28428,28609,28310,28251,32544,32749,32442,32375,31764,31961,32142,32067,31048,31109,30930,30751,31356,31409,31718,31531,29680,29501,29290,29351,28868,28681,29022,29075,30104,30037,29698,29903,30380,30305,30518,30715,21952,21773,21594,21655,22260,22073,22382,22435,21416,21349,21042,21247,20636,20561,20742,20939,22800,23005,22666,22599,23076,23273,23486,23411,24440,24501,24290,24111,23628,23681,24022,23835,19552,19629,19962,19767,20308,20377,20174,19971,18952,19141,19346,19295,18748,18929,18598,18539,16560,16509,16682,16871,17284,17225,16926,17107,18136,17941,18242,18319,17900,17697,17526,17595},{0,206,412,338,824,1014,676,618,1648,1726,2028,1826,1352,1414,1236,1050,3296,3118,3452,3506,4056,3862,3652,3722,2704,2654,2828,3010,2472,2406,2100,2298,6592,6414,6236,6290,6904,6710,7012,7082,8112,8062,7724,7906,7304,7238,7444,7642,5408,5614,5308,5234,5656,5846,6020,5962,4944,5022,4812,4610,4200,4262,4596,4410,13184,13134,12828,13010,12472,12406,12580,12778,13808,13630,13420,13474,14024,13830,14164,14234,16224,16302,16124,15922,15448,15510,15812,15626,14608,14814,14476,14402,14888,15078,15284,15226,10816,10894,11228,11026,10616,10678,10468,10282,11312,11518,11692,11618,12040,12230,11924,11866,9888,9838,10044,10226,9624,9558,9220,9418,8400,8222,8524,8578,9192,8998,8820,8890,26368,26574,26268,26194,25656,25846,26020,25962,24944,25022,24812,24610,25160,25222,25556,25370,27616,27438,27260,27314,26840,26646,26948,27018,28048,27998,27660,27842,28328,28262,28468,28666,32448,32270,32604,32658,32248,32054,31844,31914,30896,30846,31020,31202,31624,31558,31252,31450,29216,29422,29628,29554,28952,29142,28804,28746,29776,29854,30156,29954,30568,30630,30452,30266,21632,21582,21788,21970,22456,22390,22052,22250,21232,21054,21356,21410,20936,20742,20564,20634,22624,22702,23036,22834,23384,23446,23236,23050,24080,24286,24460,24386,23848,24038,23732,23674,19776,19854,19676,19474,20088,20150,20452,20266,19248,19454,19116,19042,18440,18630,18836,18778,16800,16750,16444,16626,17048,16982,17156,17354,18384,18206,17996,18050,17640,17446,17780,17850},{0,207,414,337,828,1011,674,621,1656,1719,2022,1833,1348,1419,1242,1045,3312,3135,3438,3489,4044,3843,3666,3741,2696,2631,2838,3033,2484,2427,2090,2277,6624,6447,6270,6321,6876,6675,6978,7053,8088,8023,7686,7881,7332,7275,7482,7669,5392,5599,5262,5185,5676,5859,6066,6013,4968,5031,4854,4665,4180,4251,4554,4357,13248,13071,12894,12945,12540,12339,12642,12717,13752,13687,13350,13545,13956,13899,14106,14293,16176,16383,16046,15969,15372,15555,15762,15709,14664,14727,14550,14361,14964,15035,15338,15141,10784,10991,11198,11121,10524,10707,10370,10317,11352,11415,11718,11529,12132,12203,12026,11829,9936,9759,10062,10113,9708,9507,9330,9405,8360,8295,8502,8697,9108,9051,8714,8901,26496,26447,26142,26321,25788,25715,25890,26093,25080,24887,24678,24745,25284,25099,25434,25493,27504,27583,27374,27169,26700,26755,27090,26909,27912,28103,27798,27737,28212,28411,28586,28517,32352,32431,32766,32561,32092,32147,31938,31757,30744,30935,31110,31049,31524,31723,31418,31349,29328,29279,29454,29633,29100,29027,28722,28925,29928,29735,30070,30137,30676,30491,30282,30341,21568,21647,21982,21777,22396,22451,22242,22061,21048,21239,21414,21353,20740,20939,20634,20565,22704,22655,22830,23009,23436,23363,23058,23261,24264,24071,24406,24473,24052,23867,23658,23717,19872,19823,19518,19697,20124,20051,20226,20429,19416,19223,19014,19081,18660,18475,18810,18869,16720,16799,16590,16385,17004,17059,17394,17213,18216,18407,18102,18041,17428,17627,17802,17733},{0,208,416,368,832,912,736,560,1664,1616,1824,2032,1472,1296,1120,1200,3328,3536,3232,3184,3648,3728,4064,3888,2944,2896,2592,2800,2240,2064,2400,2480,6656,6864,7072,7024,6464,6544,6368,6192,7296,7248,7456,7664,8128,7952,7776,7856,5888,6096,5792,5744,5184,5264,5600,5424,4480,4432,4128,4336,4800,4624,4960,5040,13312,13520,13728,13680,14144,14224,14048,13872,12928,12880,13088,13296,12736,12560,12384,12464,14592,14800,14496,14448,14912,14992,15328,15152,16256,16208,15904,16112,15552,15376,15712,15792,11776,11984,12192,12144,11584,11664,11488,11312,10368,10320,10528,10736,11200,11024,10848,10928,8960,9168,8864,8816,8256,8336,8672,8496,9600,9552,9248,9456,9920,9744,10080,10160,26624,26832,27040,26992,27456,27536,27360,27184,28288,28240,28448,28656,28096,27920,27744,27824,25856,26064,25760,25712,26176,26256,26592,26416,25472,25424,25120,25328,24768,24592,24928,25008,29184,29392,29600,29552,28992,29072,28896,28720,29824,29776,29984,30192,30656,30480,30304,30384,32512,32720,32416,32368,31808,31888,32224,32048,31104,31056,30752,30960,31424,31248,31584,31664,23552,23760,23968,23920,24384,24464,24288,24112,23168,23120,23328,23536,22976,22800,22624,22704,20736,20944,20640,20592,21056,21136,21472,21296,22400,22352,22048,22256,21696,21520,21856,21936,17920,18128,18336,18288,17728,17808,17632,17456,16512,16464,16672,16880,17344,17168,16992,17072,19200,19408,19104,19056,18496,18576,18912,18736,19840,19792,19488,19696,20160,19984,20320,20400},{0,209,418,371,836,917,742,567,1672,1625,1834,2043,1484,1309,1134,1215,3344,3521,3250,3171,3668,3717,4086,3879,2968,2889,2618,2795,2268,2061,2430,2479,6688,6897,7042,6995,6500,6581,6342,6167,7336,7289,7434,7643,8172,7997,7758,7839,5936,6113,5778,5699,5236,5285,5590,5383,4536,4457,4122,4299,4860,4653,4958,5007,13376,13457,13794,13619,14084,14293,13990,13943,13000,12825,13162,13243,12684,12637,12334,12543,14672,14721,14578,14371,14868,15045,15286,15207,16344,16137,15994,16043,15516,15437,15678,15855,11872,11953,12226,12051,11556,11765,11398,11351,10472,10297,10570,10651,11180,11133,10766,10975,9072,9121,8914,8707,8244,8421,8598,8519,9720,9513,9306,9355,9916,9837,10014,10191,26752,26705,26914,27123,27588,27413,27238,27319,28168,28377,28586,28539,27980,28061,27886,27711,26000,25921,25650,25827,26324,26117,26486,26535,25368,25545,25274,25195,24668,24717,25086,24879,29344,29297,29442,29651,29156,28981,28742,28823,29736,29945,30090,30043,30572,30653,30414,30239,32688,32609,32274,32451,31988,31781,32086,32135,31032,31209,30874,30795,31356,31405,31710,31503,23744,23569,23906,23987,24452,24405,24102,24311,23112,23193,23530,23355,22796,23005,22702,22655,20944,20737,20594,20643,21140,21061,21302,21479,22360,22409,22266,22059,21532,21709,21950,21871,18144,17969,18242,18323,17828,17781,17414,17623,16488,16569,16842,16667,17196,17405,17038,16991,19440,19233,19026,19075,18612,18533,18710,18887,19832,19881,19674,19467,20028,20205,20382,20303},{0,210,420,374,840,922,748,574,1680,1602,1844,2022,1496,1290,1148,1198,3360,3570,3204,3158,3688,3770,4044,3870,2992,2914,2580,2758,2296,2090,2396,2446,6720,6802,7140,6966,6408,6618,6316,6270,7376,7170,7540,7590,8088,8010,7740,7918,5984,6066,5828,5654,5160,5370,5516,5470,4592,4386,4180,4230,4792,4714,4892,5070,13440,13394,13604,13814,14280,14106,13932,14014,12816,12994,13236,13158,12632,12682,12540,12334,14752,14706,14340,14550,15080,14906,15180,15262,16176,16354,16020,15942,15480,15530,15836,15630,11968,11794,12132,12214,11656,11610,11308,11518,10320,10370,10740,10534,11032,11210,10940,10862,9184,9010,8772,8854,8360,8314,8460,8670,9584,9634,9428,9222,9784,9962,10140,10062,26880,27090,26788,26742,27208,27290,27628,27454,28560,28482,28212,28390,27864,27658,28028,28078,25632,25842,25988,25942,26472,26554,26316,26142,25264,25186,25364,25542,25080,24874,24668,24718,29504,29586,29412,29238,28680,28890,29100,29054,30160,29954,29812,29862,30360,30282,30524,30702,32352,32434,32708,32534,32040,32250,31884,31838,30960,30754,31060,31110,31672,31594,31260,31438,23936,23890,23588,23798,24264,24090,24428,24510,23312,23490,23220,23142,22616,22666,23036,22830,20640,20594,20740,20950,21480,21306,21068,21150,22064,22242,22420,22342,21880,21930,21724,21518,18368,18194,18020,18102,17544,17498,17708,17918,16720,16770,16628,16422,16920,17098,17340,17262,19168,18994,19268,19350,18856,18810,18444,18654,19568,19618,19924,19718,20280,20458,20124,20046},{0,211,422,373,844,927,746,569,1688,1611,1854,2029,1492,1287,1138,1185,3376,3555,3222,3141,3708,3759,4058,3849,2984,2939,2574,2781,2276,2103,2370,2449,6752,6835,7110,6933,6444,6655,6282,6233,7416,7211,7518,7565,8116,8039,7698,7873,5968,6019,5878,5669,5148,5327,5562,5481,4552,4379,4206,4285,4740,4695,4898,5105,13504,13331,13670,13749,14220,14175,13866,14073,12888,12939,13310,13101,12564,12743,12466,12385,14832,14627,14422,14469,15036,14959,15130,15305,16232,16315,16078,15901,15396,15607,15746,15697,11936,11891,12038,12245,11756,11583,11338,11417,10296,10475,10654,10573,11124,11175,10962,10753,9104,9027,8758,8933,8412,8207,8570,8617,9480,9691,9390,9341,9796,9879,10210,10033,27008,26963,26662,26869,27340,27167,27498,27577,28440,28619,28350,28269,27732,27783,28146,27937,25776,25699,25878,26053,26620,26415,26202,26249,25128,25339,25486,25437,24932,25015,24770,24593,29664,29491,29254,29333,28844,28799,28938,29145,30072,30123,29918,29709,30260,30439,30610,30529,32464,32259,32630,32677,32156,32079,31802,31977,30792,30875,31214,31037,31492,31703,31394,31345,23872,23955,23782,23605,24076,24287,24490,24441,23512,23307,23166,23213,22676,22599,22834,23009,20592,20643,20950,20741,21308,21487,21146,21065,22248,22075,22350,22429,21924,21879,21506,21713,18208,18419,18054,18005,17516,17599,17866,17689,16824,16747,16414,16589,17140,16935,17234,17281,18960,19139,19382,19301,18780,18831,18682,18473,19592,19547,19758,19965,20420,20247,20066,20145},{0,212,424,380,848,900,760,556,1696,1652,1800,2012,1520,1316,1112,1164,3392,3476,3304,3132,3600,3780,4024,3948,3040,2868,2632,2716,2224,2148,2328,2508,6784,6740,6952,7164,6608,6404,6264,6316,7200,7412,7560,7516,8048,8100,7896,7692,6080,5908,5736,5820,5264,5188,5432,5612,4448,4532,4296,4124,4656,4836,5016,4940,13568,13780,13480,13436,13904,13956,14328,14124,13216,13172,12808,13020,12528,12324,12632,12684,14400,14484,14824,14652,15120,15300,15032,14956,16096,15924,16200,16284,15792,15716,15384,15564,12160,12116,11816,12028,11472,11268,11640,11692,10528,10740,10376,10332,10864,10916,11224,11020,8896,8724,9064,9148,8592,8516,8248,8428,9312,9396,9672,9500,10032,10212,9880,9804,27136,27348,27560,27516,26960,27012,26872,26668,27808,27764,27912,28124,28656,28452,28248,28300,26432,26516,26344,26172,25616,25796,26040,25964,25056,24884,24648,24732,25264,25188,25368,25548,28800,28756,28968,29180,29648,29444,29304,29356,30240,30452,30600,30556,30064,30116,29912,29708,32192,32020,31848,31932,32400,32324,32568,32748,31584,31668,31432,31260,30768,30948,31128,31052,24320,24532,24232,24188,23632,23684,24056,23852,22944,22900,22536,22748,23280,23076,23384,23436,21056,21140,21480,21308,20752,20932,20664,20588,21728,21556,21832,21916,22448,22372,22040,22220,17792,17748,17448,17660,18128,17924,18296,18348,17184,17396,17032,16988,16496,16548,16856,16652,18624,18452,18792,18876,19344,19268,19000,19180,20064,20148,20424,20252,19760,19940,19608,19532},{0,213,426,383,852,897,766,555,1704,1661,1794,2007,1532,1321,1110,1155,3408,3461,3322,3119,3588,3793,4014,3963,3064,2861,2642,2695,2220,2169,2310,2515,6816,6773,6922,7135,6644,6433,6238,6283,7176,7389,7586,7543,8028,8073,7926,7715,6128,5925,5722,5775,5284,5233,5390,5595,4440,4493,4338,4135,4620,4825,5030,4979,13632,13717,13546,13375,13844,14017,14270,14187,13288,13117,12866,12951,12476,12393,12566,12739,14352,14533,14778,14703,15172,15249,15086,14907,16056,15981,16146,16327,15852,15673,15430,15507,12256,12085,11850,11935,11444,11361,11550,11723,10568,10653,10466,10295,10780,10953,11190,11107,8880,8805,8986,9167,8676,8497,8270,8347,9240,9421,9650,9575,10060,10137,9958,9779,27264,27221,27434,27647,27092,26881,26750,26795,27688,27901,28034,27991,28540,28585,28374,28163,26576,26373,26234,26287,25732,25681,25902,26107,24952,25005,24786,24583,25132,25337,25478,25427,28704,28917,29066,29023,29556,29601,29406,29195,30344,30301,30498,30711,30172,29961,29814,29859,32112,32165,31962,31759,32292,32497,32654,32603,31704,31501,31346,31399,30860,30809,31014,31219,24512,24341,24170,24255,23700,23617,23870,24043,22888,22973,22722,22551,23100,23273,23446,23363,21136,21061,21306,21487,20932,20753,20590,20667,21560,21741,21906,21831,22380,22457,22214,22035,17760,17845,17610,17439,17972,18145,18334,18251,17352,17181,16994,17079,16540,16457,16694,16867,18480,18661,18842,18767,19300,19377,19150,18971,20120,20045,20274,20455,19916,19737,19558,19635},{0,214,428,378,856,910,756,546,1712,1638,1820,1994,1512,1342,1092,1170,3424,3510,3276,3098,3640,3822,3988,3906,3024,2822,2684,2730,2184,2142,2340,2546,6848,6678,7020,7098,6552,6478,6196,6370,7280,7334,7644,7434,7976,8190,7812,7762,6048,6006,5644,5850,5368,5166,5460,5506,4368,4550,4284,4202,4680,4766,5092,4914,13696,13654,13356,13562,14040,13838,14196,14242,13104,13286,12956,12874,12392,12478,12740,12562,14560,14390,14668,14746,15288,15214,14868,15042,15952,16006,16380,16170,15624,15838,15524,15474,12096,12182,12012,11834,11288,11470,11700,11618,10736,10534,10332,10378,10920,10878,11012,11218,8736,8950,9100,9050,8568,8622,8404,8194,9360,9286,9532,9706,10184,10014,9828,9906,27392,27606,27308,27258,26712,26766,27124,26914,28080,28006,27676,27850,28392,28222,28484,28562,26208,26294,26572,26394,25912,26094,25748,25666,24784,24582,24956,25002,25480,25438,25124,25330,29120,28950,28780,28858,29336,29262,29492,29666,30576,30630,30428,30218,29736,29950,30084,30034,31904,31862,32012,32218,32760,32558,32340,32386,31248,31430,31676,31594,31048,31134,30948,30770,24192,24150,24364,24570,24024,23822,23668,23714,22576,22758,22940,22858,23400,23486,23236,23058,21472,21302,21068,21146,20664,20590,20756,20930,21840,21894,21756,21546,22024,22238,22436,22386,17472,17558,17900,17722,18200,18382,18100,18018,17136,16934,17244,17290,16808,16766,16388,16594,18720,18934,18572,18522,19064,19118,19412,19202,20368,20294,20028,20202,19656,19486,19812,19890},{0,215,430,377,860,907,754,549,1720,1647,1814,1985,1508,1331,1098,1181,3440,3495,3294,3081,3628,3835,3970,3925,3016,2847,2662,2737,2196,2115,2362,2541,6880,6711,6990,7065,6588,6507,6162,6341,7256,7311,7670,7457,7940,8147,7850,7805,6032,5959,5694,5865,5324,5147,5474,5557,4392,4607,4230,4177,4724,4771,5082,4877,13760,13591,13422,13497,13980,13899,14130,14309,13176,13231,13014,12801,12324,12531,12682,12637,14512,14439,14622,14793,15340,15163,14914,14997,15880,16095,16294,16241,15700,15747,15610,15405,12064,12279,11918,11865,11388,11435,11730,11525,10648,10575,10294,10465,10948,10771,11114,11197,8784,8839,9214,9001,8460,8667,8354,8309,9448,9279,9542,9617,10164,10083,9754,9933,27520,27479,27182,27385,26844,26635,26994,27045,27960,28143,27798,27713,28260,28339,28618,28445,26352,26151,26462,26505,26028,25979,25602,25813,24648,24735,25062,24881,25364,25539,25274,25197,29024,29111,28878,28697,29244,29419,29586,29509,30680,30479,30326,30369,29828,29779,29994,30205,31760,31943,32190,32105,32588,32667,32482,32309,31400,31359,31494,31697,31220,31011,30810,30861,24128,24215,24558,24377,23836,24011,23730,23653,22776,22575,22870,22913,23460,23411,23050,23261,21296,21479,21150,21065,20588,20667,20930,20757,21896,21855,21542,21745,22228,22019,22394,22445,17568,17527,17678,17881,18428,18219,18002,18053,16920,17103,17334,17249,16708,16787,16618,16445,18896,18695,18558,18601,19084,19035,19234,19445,20328,20415,20166,19985,19508,19683,19866,19789},{0,216,432,360,864,952,720,520,1728,1560,1904,1960,1440,1400,1040,1224,3456,3416,3120,3304,3808,3640,3920,3976,2880,2968,2800,2600,2080,2296,2448,2376,6912,7128,6832,6760,6240,6328,6608,6408,7616,7448,7280,7336,7840,7800,7952,8136,5760,5720,5936,6120,5600,5432,5200,5256,4160,4248,4592,4392,4896,5112,4752,4680,13824,14040,14256,14184,13664,13752,13520,13320,12480,12312,12656,12712,13216,13176,12816,13000,15232,15192,14896,15080,14560,14392,14672,14728,15680,15768,15600,15400,15904,16120,16272,16200,11520,11736,11440,11368,11872,11960,12240,12040,11200,11032,10864,10920,10400,10360,10512,10696,8320,8280,8496,8680,9184,9016,8784,8840,9792,9880,10224,10024,9504,9720,9360,9288,27648,27864,28080,28008,28512,28600,28368,28168,27328,27160,27504,27560,27040,27000,26640,26824,24960,24920,24624,24808,25312,25144,25424,25480,26432,26520,26352,26152,25632,25848,26000,25928,30464,30680,30384,30312,29792,29880,30160,29960,29120,28952,28784,28840,29344,29304,29456,29640,31360,31320,31536,31720,31200,31032,30800,30856,31808,31896,32240,32040,32544,32760,32400,32328,23040,23256,23472,23400,22880,22968,22736,22536,23744,23576,23920,23976,24480,24440,24080,24264,22400,22360,22064,22248,21728,21560,21840,21896,20800,20888,20720,20520,21024,21240,21392,21320,16640,16856,16560,16488,16992,17080,17360,17160,18368,18200,18032,18088,17568,17528,17680,17864,19584,19544,19760,19944,20448,20280,20048,20104,19008,19096,19440,19240,18720,18936,18576,18504},{0,217,434,363,868,957,726,527,1736,1553,1914,1955,1452,1397,1054,1223,3472,3401,3106,3323,3828,3629,3910,3999,2904,2945,2794,2611,2108,2277,2446,2391,6944,7161,6802,6731,6212,6301,6646,6447,7656,7473,7258,7299,7820,7765,7998,8167,5808,5737,5890,6107,5588,5389,5222,5311,4216,4257,4554,4371,4892,5061,4782,4727,13888,13977,14322,14123,13604,13821,13462,13391,12424,12369,12602,12771,13292,13109,12894,12935,15312,15113,14946,15035,14516,14445,14598,14815,15640,15809,15530,15475,15996,16037,16334,16151,11616,11705,11474,11275,11780,11997,12214,12143,11176,11121,10778,10947,10444,10261,10622,10663,8432,8233,8514,8603,9108,9037,8742,8959,9784,9953,10122,10067,9564,9605,9454,9271,27776,27737,27954,28139,28644,28477,28246,28303,27208,27281,27642,27427,26924,27125,26782,26695,24848,25033,24738,24699,25204,25261,25542,25375,26584,26369,26218,26291,25788,25701,25870,26071,30624,30585,30226,30411,29892,29725,30070,30127,29032,29105,28890,28675,29196,29397,29630,29543,31280,31465,31618,31579,31060,31117,30950,30783,31992,31777,32074,32147,32668,32581,32302,32503,23232,23065,23410,23467,22948,22909,22550,22735,23560,23761,23994,23907,24428,24501,24286,24071,22352,22409,22242,22075,21556,21741,21894,21855,20888,20801,20522,20723,21244,21029,21326,21399,16864,16697,16466,16523,17028,16989,17206,17391,18216,18417,18074,17987,17484,17557,17918,17703,19568,19625,19906,19739,20244,20429,20134,20095,19128,19041,19210,19411,18908,18693,18542,18615},{0,218,436,366,872,946,732,518,1744,1546,1892,1982,1464,1378,1036,1238,3488,3450,3092,3278,3784,3602,3964,4006,2928,2986,2756,2590,2072,2242,2476,2422,6976,7066,6900,6702,6184,6386,6556,6470,7568,7498,7204,7422,7928,7714,8012,8086,5856,5690,5972,6030,5512,5458,5180,5350,4144,4330,4484,4446,4952,4994,4844,4662,13952,13914,14132,14318,13800,13618,13404,13446,12368,12426,12772,12606,13112,13282,12940,12886,15136,15354,14996,14926,14408,14482,14844,14630,15856,15658,15428,15518,16024,15938,16172,16374,11712,11546,11380,11438,11944,11890,12060,12230,11024,11210,10916,10878,10360,10402,10700,10518,8288,8378,8660,8462,8968,9170,8892,8806,9904,9834,9988,10206,9688,9474,9324,9398,27904,28122,27828,27758,28264,28338,28636,28422,27600,27402,27236,27326,26808,26722,26892,27094,24736,24698,24852,25038,25544,25362,25212,25254,26224,26282,26564,26398,25880,26050,25772,25718,30272,30362,30708,30510,29992,30194,29852,29766,28816,28746,28964,29182,29688,29474,29260,29334,31712,31546,31316,31374,30856,30802,31036,31206,32048,32234,31876,31838,32344,32386,32748,32566,23424,23386,23092,23278,22760,22578,22876,22918,23888,23946,23780,23614,24120,24290,24460,24406,22048,22266,22420,22350,21832,21906,21756,21542,20720,20522,20804,20894,21400,21314,21036,21238,16576,16410,16756,16814,17320,17266,16924,17094,17936,18122,18340,18302,17784,17826,17612,17430,19808,19898,19668,19470,19976,20178,20412,20326,19376,19306,18948,19166,18648,18434,18796,18870},{0,219,438,365,876,951,730,513,1752,1539,1902,1973,1460,1391,1026,1241,3504,3435,3078,3293,3804,3591,3946,4017,2920,2995,2782,2565,2052,2271,2482,2409,7008,7099,6870,6669,6156,6359,6586,6497,7608,7523,7182,7381,7892,7695,8034,8121,5840,5643,5990,6077,5564,5479,5130,5329,4104,4307,4542,4453,4964,5055,4818,4617,14016,13851,14198,14253,13740,13687,13338,13505,12312,12483,12718,12661,13172,13231,12994,12825,15216,15275,15046,14877,14364,14535,14762,14705,15784,15731,15390,15557,16068,15903,16242,16297,11680,11643,11286,11469,11980,11799,12154,12193,11128,11171,10958,10773,10260,10447,10658,10617,8208,8395,8614,8573,9084,9127,8906,8721,9928,9747,10110,10149,9636,9599,9234,9417,28032,27995,27702,27885,28396,28215,28506,28545,27480,27523,27374,27189,26676,26863,27010,26969,24624,24811,24966,24925,25436,25479,25322,25137,26344,26163,26462,26501,25988,25951,25650,25833,30432,30267,30550,30605,30092,30039,29754,29921,28728,28899,29070,29013,29524,29583,29410,29241,31568,31627,31462,31293,30780,30951,31114,31057,32136,32083,31806,31973,32484,32319,32594,32649,23360,23451,23286,23085,22572,22775,22938,22849,23960,23875,23598,23797,24308,24111,24386,24473,22256,22059,22342,22429,21916,21831,21546,21745,20520,20723,20894,20805,21316,21407,21234,21033,16416,16635,16790,16717,17228,17303,17146,16929,18168,17955,18254,18325,17812,17743,17442,17657,19856,19787,19494,19709,20220,20007,20298,20369,19272,19347,19198,18981,18468,18687,18834,18761},{0,220,440,356,880,940,712,532,1760,1596,1880,1924,1424,1356,1064,1268,3520,3356,3192,3236,3760,3692,3848,4052,2848,3068,2712,2628,2128,2188,2536,2356,7040,7004,6712,6884,6384,6188,6472,6548,7520,7612,7384,7172,7696,7884,8104,8052,5696,5788,6136,5924,5424,5612,5256,5204,4256,4220,4376,4548,5072,4876,4712,4788,14080,14300,14008,13924,13424,13484,13768,13588,12768,12604,12376,12420,12944,12876,13096,13300,15040,14876,15224,15268,14768,14700,14344,14548,15392,15612,15768,15684,16208,16268,16104,15924,11392,11356,11576,11748,12272,12076,11848,11924,10848,10940,11224,11012,10512,10700,10408,10356,8512,8604,8440,8228,8752,8940,9096,9044,10144,10108,9752,9924,9424,9228,9576,9652,28160,28380,28600,28516,28016,28076,27848,27668,26848,26684,26968,27012,27536,27468,27176,27380,25536,25372,25208,25252,24752,24684,24840,25044,25888,26108,25752,25668,26192,26252,26600,26420,30080,30044,29752,29924,30448,30252,30536,30612,29536,29628,29400,29188,28688,28876,29096,29044,30784,30876,31224,31012,31536,31724,31368,31316,32416,32380,32536,32708,32208,32012,31848,31924,22784,23004,22712,22628,23152,23212,23496,23316,24544,24380,24152,24196,23696,23628,23848,24052,21696,21532,21880,21924,22448,22380,22024,22228,21024,21244,21400,21316,20816,20876,20712,20532,17024,16988,17208,17380,16880,16684,16456,16532,17504,17596,17880,17668,18192,18380,18088,18036,20288,20380,20216,20004,19504,19692,19848,19796,18848,18812,18456,18628,19152,18956,19304,19380},{0,221,442,359,884,937,718,531,1768,1589,1874,1935,1436,1345,1062,1275,3536,3341,3178,3255,3748,3705,3870,4035,2872,3045,2690,2655,2124,2193,2550,2347,7072,7037,6682,6855,6356,6153,6510,6579,7496,7573,7410,7215,7740,7905,8070,8027,5744,5805,6090,5911,5380,5593,5310,5219,4248,4165,4386,4607,5100,4913,4694,4747,14144,14237,14074,13863,13364,13545,13710,13651,12712,12661,12306,12495,13020,12801,13158,13243,14992,14925,15146,15351,14820,14649,14430,14467,15480,15525,15810,15647,16140,16337,16054,15979,11488,11325,11610,11655,12180,12105,11822,12019,10760,10965,11186,11119,10620,10657,10438,10267,8496,8685,8330,8279,8772,8857,9214,8995,10200,9989,9826,9919,9388,9329,9494,9675,28288,28253,28474,28647,28148,27945,27726,27795,26728,26805,27090,26895,27420,27585,27302,27259,25424,25485,25322,25143,24612,24825,24990,24899,26040,25957,25602,25823,26316,26129,26486,26539,29984,30205,29850,29767,30292,30345,30702,30515,29640,29461,29298,29359,28860,28769,28934,29147,30960,30765,31050,31127,31620,31577,31294,31459,32280,32453,32674,32639,32108,32177,31958,31755,22976,22813,22650,22695,23220,23145,23310,23507,24360,24565,24210,24143,23644,23681,24038,23867,21520,21709,21930,21879,22372,22457,22238,22019,21240,21029,21314,21407,20876,20817,20534,20715,16992,17085,17370,17159,16660,16841,16558,16499,17544,17493,17714,17903,18428,18209,17990,18075,20400,20333,19978,20183,19652,19481,19838,19875,18776,18821,18658,18495,18988,19185,19350,19275},{0,222,444,354,888,934,708,538,1776,1582,1868,1938,1416,1366,1076,1258,3552,3390,3164,3202,3736,3654,3876,4090,2832,3022,2732,2674,2152,2230,2516,2314,7104,6942,6780,6818,6328,6246,6404,6618,7472,7662,7308,7250,7752,7830,8180,7978,5664,5886,6044,5954,5464,5510,5348,5178,4304,4110,4460,4530,5032,4982,4628,4810,14208,14174,13884,14050,13560,13350,13636,13722,12656,12718,12492,12306,12808,13014,13236,13162,14944,15038,15324,15106,14616,14790,14500,14458,15504,15438,15660,15858,16360,16182,15956,16010,11328,11422,11772,11554,12088,12262,11908,11866,10928,10862,11020,11218,10696,10518,10356,10410,8608,8574,8220,8386,8920,8710,9060,9146,10064,10126,9964,9778,9256,9462,9620,9546,28416,28638,28348,28258,27768,27814,28100,27930,27120,26926,26700,26770,27272,27222,27444,27626,25312,25150,25436,25474,24984,24902,24612,24826,25616,25806,26028,25970,26472,26550,26324,26122,29888,29726,30076,30114,30648,30566,30212,30426,29232,29422,29580,29522,29000,29078,28916,28714,31008,31230,30876,30786,31320,31366,31716,31546,32720,32526,32364,32434,31912,31862,32020,32202,22656,22622,22844,23010,23544,23334,23108,23194,24176,24238,24524,24338,23816,24022,23732,23658,21856,21950,21724,21506,22040,22214,22436,22394,21392,21326,21036,21234,20712,20534,20820,20874,17216,17310,17148,16930,16440,16614,16772,16730,17840,17774,17420,17618,18120,17942,18292,18346,20128,20094,20252,20418,19928,19718,19556,19642,18512,18574,18924,18738,19240,19446,19092,19018},{0,223,446,353,892,931,706,541,1784,1575,1862,1945,1412,1371,1082,1253,3568,3375,3150,3217,3724,3667,3890,4077,2824,3031,2742,2665,2164,2219,2506,2325,7136,6975,6750,6785,6300,6211,6434,6653,7448,7623,7334,7289,7780,7867,8154,7941,5648,5839,6062,6001,5484,5555,5330,5133,4328,4151,4438,4489,5012,4939,4650,4853,14272,14111,13950,13985,13500,13411,13570,13789,12600,12775,12422,12377,12868,12955,13306,13093,14896,15087,15246,15185,14668,14739,14578,14381,15560,15383,15734,15785,16308,16235,15882,16085,11296,11519,11678,11585,12124,12163,12002,11837,10968,10759,11110,11193,10660,10619,10266,10437,8656,8463,8302,8369,8876,8819,8978,9165,10024,10231,9878,9801,9300,9355,9706,9525,28544,28511,28222,28385,27900,27683,27970,28061,27000,27047,26822,26649,27140,27355,27578,27493,25200,25263,25550,25361,24844,25043,24754,24685,25736,25687,25910,26089,26612,26411,26186,26261,29792,29887,30174,29953,30492,30659,30370,30333,29336,29255,29478,29689,29156,28987,28762,28805,31120,31055,30766,30961,31468,31283,31570,31629,32616,32695,32470,32265,31764,31947,32170,32117,22592,22687,23038,22817,23356,23523,23170,23133,24248,24167,24326,24537,24004,23835,23674,23717,21936,21871,21518,21713,22220,22035,22386,22445,21320,21399,21238,21033,20532,20715,20874,20821,17312,17279,16926,17089,16604,16387,16738,16829,17752,17799,17638,17465,17956,18171,18330,18245,20048,20111,20462,20273,19756,19955,19602,19533,18600,18551,18710,18889,19412,19211,19050,19125},{0,224,448,288,896,864,576,672,1792,2016,1728,1568,1152,1120,1344,1440,3584,3808,4032,3872,3456,3424,3136,3232,2304,2528,2240,2080,2688,2656,2880,2976,7168,7392,7616,7456,8064,8032,7744,7840,6912,7136,6848,6688,6272,6240,6464,6560,4608,4832,5056,4896,4480,4448,4160,4256,5376,5600,5312,5152,5760,5728,5952,6048,14336,14560,14784,14624,15232,15200,14912,15008,16128,16352,16064,15904,15488,15456,15680,15776,13824,14048,14272,14112,13696,13664,13376,13472,12544,12768,12480,12320,12928,12896,13120,13216,9216,9440,9664,9504,10112,10080,9792,9888,8960,9184,8896,8736,8320,8288,8512,8608,10752,10976,11200,11040,10624,10592,10304,10400,11520,11744,11456,11296,11904,11872,12096,12192,28672,28896,29120,28960,29568,29536,29248,29344,30464,30688,30400,30240,29824,29792,30016,30112,32256,32480,32704,32544,32128,32096,31808,31904,30976,31200,30912,30752,31360,31328,31552,31648,27648,27872,28096,27936,28544,28512,28224,28320,27392,27616,27328,27168,26752,26720,26944,27040,25088,25312,25536,25376,24960,24928,24640,24736,25856,26080,25792,25632,26240,26208,26432,26528,18432,18656,18880,18720,19328,19296,19008,19104,20224,20448,20160,20000,19584,19552,19776,19872,17920,18144,18368,18208,17792,17760,17472,17568,16640,16864,16576,16416,17024,16992,17216,17312,21504,21728,21952,21792,22400,22368,22080,22176,21248,21472,21184,21024,20608,20576,20800,20896,23040,23264,23488,23328,22912,22880,22592,22688,23808,24032,23744,23584,24192,24160,24384,24480},{0,225,450,291,900,869,582,679,1800,2025,1738,1579,1164,1133,1358,1455,3600,3825,4050,3891,3476,3445,3158,3255,2328,2553,2266,2107,2716,2685,2910,3007,7200,7361,7650,7427,8100,8005,7782,7815,6952,7113,6890,6667,6316,6221,6510,6543,4656,4817,5106,4883,4532,4437,4214,4247,5432,5593,5370,5147,5820,5725,6014,6047,14400,14497,14722,14691,15300,15141,14854,15079,16200,16297,16010,15979,15564,15405,15630,15855,13904,14001,14226,14195,13780,13621,13334,13559,12632,12729,12442,12411,13020,12861,13086,13311,9312,9345,9634,9539,10212,9989,9766,9927,9064,9097,8874,8779,8428,8205,8494,8655,10864,10897,11186,11091,10740,10517,10294,10455,11640,11673,11450,11355,12028,11805,12094,12255,28800,28769,28994,29091,29444,29669,29382,29223,30600,30569,30282,30379,29708,29933,30158,29999,32400,32369,32594,32691,32020,32245,31958,31799,31128,31097,30810,30907,31260,31485,31710,31551,27808,27713,28002,28035,28452,28613,28390,28167,27560,27465,27242,27275,26668,26829,27118,26895,25264,25169,25458,25491,24884,25045,24822,24599,26040,25945,25722,25755,26172,26333,26622,26399,18624,18465,18690,18915,19268,19365,19078,19047,20424,20265,19978,20203,19532,19629,19854,19823,18128,17969,18194,18419,17748,17845,17558,17527,16856,16697,16410,16635,16988,17085,17310,17279,21728,21505,21794,21955,22372,22405,22182,22087,21480,21257,21034,21195,20588,20621,20910,20815,23280,23057,23346,23507,22900,22933,22710,22615,24056,23833,23610,23771,24188,24221,24510,24415},{0,226,452,294,904,874,588,686,1808,2034,1748,1590,1176,1146,1372,1470,3616,3778,4068,3846,3496,3402,3180,3214,2352,2514,2292,2070,2744,2650,2940,2974,7232,7330,7556,7526,8136,7978,7692,7918,6992,7090,6804,6774,6360,6202,6428,6654,4704,4738,5028,4934,4584,4362,4140,4302,5488,5522,5300,5206,5880,5658,5948,6110,14464,14434,14660,14758,15112,15338,15052,14894,16272,16242,15956,16054,15384,15610,15836,15678,13984,13890,14180,14214,13608,13770,13548,13326,12720,12626,12404,12438,12856,13018,13308,13086,9408,9250,9476,9702,10056,10154,9868,9838,9168,9010,8724,8950,8280,8378,8604,8574,10976,10754,11044,11206,10600,10634,10412,10318,11760,11538,11316,11478,11896,11930,12220,12126,28928,29154,28868,28710,29320,29290,29516,29614,30224,30450,30676,30518,30104,30074,29788,29886,32544,32706,32484,32262,31912,31818,32108,32142,30768,30930,31220,30998,31672,31578,31356,31390,27968,28066,27780,27750,28360,28202,28428,28654,27216,27314,27540,27510,27096,26938,26652,26878,25440,25474,25252,25158,24808,24586,24876,25038,25712,25746,26036,25942,26616,26394,26172,26334,18816,18786,18500,18598,18952,19178,19404,19246,20112,20082,20308,20406,19736,19962,19676,19518,18336,18242,18020,18054,17448,17610,17900,17678,16560,16466,16756,16790,17208,17370,17148,16926,21952,21794,21508,21734,22088,22186,22412,22382,21200,21042,21268,21494,20824,20922,20636,20606,23520,23298,23076,23238,22632,22666,22956,22862,23792,23570,23860,24022,24440,24474,24252,24158},{0,227,454,293,908,879,586,681,1816,2043,1758,1597,1172,1143,1362,1457,3632,3795,4086,3861,3516,3423,3194,3225,2344,2507,2286,2061,2724,2631,2914,2945,7264,7299,7590,7493,8172,7951,7722,7881,7032,7067,6846,6749,6388,6167,6450,6609,4688,4787,5014,4981,4572,4415,4122,4345,5448,5547,5262,5229,5828,5671,5890,6113,14528,14371,14598,14821,15180,15279,14986,14953,16344,16187,15902,16125,15444,15543,15762,15729,14064,13843,14134,14293,13692,13727,13498,13401,12776,12555,12334,12493,12900,12935,13218,13121,9376,9283,9574,9605,10028,10191,9962,9737,9144,9051,8830,8861,8244,8407,8690,8465,10896,10867,11094,11189,10524,10751,10458,10297,11656,11627,11342,11437,11780,12007,12226,12065,29056,29027,28742,28837,29196,29423,29642,29481,30360,30331,30558,30653,29972,30199,29906,29745,32688,32595,32374,32405,31804,31967,32250,32025,30888,30795,31086,31117,31524,31687,31458,31233,28128,27907,27686,27845,28268,28303,28586,28489,27384,27163,27454,27613,26996,27031,26802,26705,25552,25395,25110,25333,24668,24767,24986,24953,25800,25643,25870,26093,26436,26535,26242,26209,18752,18851,18566,18533,19148,18991,19210,19433,20056,20155,20382,20349,19924,19767,19474,19697,18288,18323,18102,18005,17660,17439,17722,17881,16488,16523,16814,16717,17380,17159,16930,17089,21792,21955,21734,21509,22188,22095,22378,22409,21048,21211,21502,21277,20916,20823,20594,20625,23312,23539,23254,23093,22684,22655,22874,22969,23560,23787,24014,23853,24452,24423,24130,24225},{0,228,456,300,912,884,600,700,1824,1988,1768,1548,1200,1108,1400,1436,3648,3748,3976,3948,3536,3380,3096,3324,2400,2436,2216,2124,2800,2580,2872,3036,7296,7268,7496,7596,7952,8180,7896,7740,7072,6980,6760,6796,6192,6356,6648,6428,4800,4644,4872,5100,4432,4532,4248,4220,5600,5380,5160,5324,5744,5780,6072,5980,14592,14820,14536,14380,14992,14964,15192,15292,15904,16068,16360,16140,15792,15700,15480,15516,14144,14244,13960,13932,13520,13364,13592,13820,12384,12420,12712,12620,13296,13076,12856,13020,9600,9572,9288,9388,9744,9972,10200,10044,8864,8772,9064,9100,8496,8660,8440,8220,11200,11044,10760,10988,10320,10420,10648,10620,11488,11268,11560,11724,12144,12180,11960,11868,29184,29412,29640,29484,29072,29044,28760,28860,29984,30148,29928,29708,30384,30292,30584,30620,31808,31908,32136,32108,32720,32564,32280,32508,31584,31620,31400,31308,30960,30740,31032,31196,28288,28260,28488,28588,27920,28148,27864,27708,27040,26948,26728,26764,27184,27348,27640,27420,24768,24612,24840,25068,25424,25524,25240,25212,26592,26372,26152,26316,25712,25748,26040,25948,19200,19428,19144,18988,18576,18548,18776,18876,19488,19652,19944,19724,20400,20308,20088,20124,17728,17828,17544,17516,18128,17972,18200,18428,16992,17028,17320,17228,16880,16660,16440,16604,22400,22372,22088,22188,21520,21748,21976,21820,20640,20548,20840,20876,21296,21460,21240,21020,22976,22820,22536,22764,23120,23220,23448,23420,24288,24068,24360,24524,23920,23956,23736,23644},{0,229,458,303,916,881,606,699,1832,1997,1762,1543,1212,1113,1398,1427,3664,3765,3994,3967,3524,3361,3086,3307,2424,2461,2226,2135,2796,2569,2854,3011,7328,7237,7530,7567,7988,8145,7934,7707,7048,7021,6722,6823,6172,6393,6614,6451,4848,4629,4922,5087,4452,4481,4270,4171,5592,5437,5138,5367,5708,5801,6022,5987,14656,14757,14474,14447,15060,14897,15134,15355,15976,16013,16290,16199,15868,15641,15414,15571,14096,14325,14042,13887,13444,13409,13646,13739,12344,12509,12786,12567,13228,13129,12902,12931,9696,9477,9258,9423,9844,9873,10174,10075,8904,8749,8962,9191,8540,8633,8342,8307,11184,11093,10874,10911,10276,10433,10734,10507,11416,11389,11602,11703,12044,12265,11974,11811,29312,29285,29514,29615,28948,29169,28894,28731,30120,30029,29794,29831,30268,30425,30710,30483,31952,31797,32026,32255,32580,32673,32398,32363,31736,31517,31282,31447,30828,30857,31142,31043,28192,28357,28650,28431,28084,27985,27774,27803,26888,27117,26818,26663,27292,27257,27478,27571,24688,24725,25018,24927,25572,25345,25134,25291,26456,26557,26258,26231,25804,25641,25862,26083,19392,19237,18954,19183,18516,18609,18846,18811,19688,19469,19746,19911,20348,20377,20150,20051,17808,17781,17498,17599,17924,18145,18382,18219,17080,16989,17266,17303,16684,16841,16614,16387,22368,22405,22186,22095,21748,21521,21822,21979,20552,20653,20866,20839,21468,21305,21014,21235,22832,22997,22778,22559,23204,23105,23406,23435,24088,24317,24530,24375,23948,23913,23622,23715},{0,230,460,298,920,894,596,690,1840,2006,1788,1562,1192,1102,1380,1410,3680,3718,4012,3914,3576,3358,3124,3282,2384,2486,2204,2170,2760,2606,2820,3042,7360,7206,7436,7658,8024,8126,7828,7794,7152,6934,6716,6874,6248,6286,6564,6466,4768,4678,4972,5002,4408,4574,4340,4114,5520,5494,5212,5306,5640,5870,6084,5922,14720,14694,14412,14506,14872,15102,15316,15154,16048,15958,16252,16282,15656,15822,15588,15362,14304,14086,13868,14026,13432,13470,13748,13650,12496,12342,12572,12794,13128,13230,12932,12898,9536,9638,9356,9322,9944,9790,10004,10226,8816,8854,9148,9050,8680,8462,8228,8386,11040,11206,10988,10762,10424,10334,10612,10642,11280,11510,11740,11578,12168,12142,11844,11938,29440,29670,29388,29226,28824,28798,29012,29106,29744,29910,30204,29978,30632,30542,30308,30338,32096,32134,31916,31818,32504,32286,32564,32722,31312,31414,31644,31610,31176,31022,30724,30946,28608,28454,28172,28394,27736,27838,28052,28018,26864,26646,26940,27098,27496,27534,27300,27202,24992,24902,24684,24714,25144,25310,25588,25362,26256,26230,26460,26554,25864,26094,25796,25634,19072,19046,19276,19370,18712,18942,18644,18482,19888,19798,19580,19610,20008,20174,20452,20226,17632,17414,17708,17866,18296,18334,18100,18002,17360,17206,16924,17146,16456,16558,16772,16738,22080,22182,22412,22378,21976,21822,21524,21746,20848,20886,20668,20570,21224,21006,21284,21442,22560,22726,23020,22794,23480,23390,23156,23186,24336,24566,24284,24122,23688,23662,23876,23970},{0,231,462,297,924,891,594,693,1848,2015,1782,1553,1188,1091,1386,1421,3696,3735,4030,3929,3564,3339,3106,3269,2376,2479,2182,2145,2772,2611,2842,3069,7392,7175,7470,7625,8060,8091,7858,7765,7128,6975,6678,6897,6212,6307,6538,6509,4752,4727,4958,5049,4364,4587,4290,4133,5544,5455,5222,5249,5684,5843,6138,5917,14784,14631,14350,14569,14940,15035,15250,15221,16120,15903,16182,16337,15716,15747,15530,15437,14256,14167,13950,13977,13356,13515,13794,13573,12424,12399,12614,12705,13076,13299,13018,12861,9504,9671,9454,9225,9916,9819,10098,10133,8728,8959,9174,9009,8580,8547,8266,8365,11088,11191,10910,10873,10444,10283,10498,10725,11368,11407,11686,11585,12276,12051,11834,11997,29568,29543,29262,29353,28700,28923,29138,28981,29880,29791,30070,30097,30500,30659,30442,30221,32240,32023,31806,31961,32364,32395,32674,32581,31432,31279,31494,31713,31060,31155,30874,30845,28512,28551,28334,28233,27900,27675,27954,28117,26712,26815,27030,26993,27588,27427,27146,27373,24848,25079,24798,24633,25228,25195,25410,25509,26152,26319,26598,26369,26036,25939,25722,25757,19008,19111,19342,19305,18908,18747,18450,18677,19832,19871,19638,19537,20196,19971,20266,20429,17456,17623,17918,17689,18348,18251,18018,18053,17160,17391,17094,16929,16532,16499,16730,16829,22176,22087,22382,22409,21820,21979,21746,21525,20888,20863,20566,20657,20996,21219,21450,21293,22736,22583,22814,23033,23372,23467,23170,23141,24552,24335,24102,24257,23668,23699,23994,23901},{0,232,464,312,928,840,624,664,1856,1960,1680,1656,1248,1032,1328,1496,3712,3688,3920,4024,3360,3528,3312,3096,2496,2344,2064,2296,2656,2696,2992,2904,7424,7656,7376,7224,7840,7752,8048,8088,6720,6824,7056,7032,6624,6408,6192,6360,4992,4968,4688,4792,4128,4296,4592,4376,5312,5160,5392,5624,5984,6024,5808,5720,14848,15080,15312,15160,14752,14664,14448,14488,15680,15784,15504,15480,16096,15880,16176,16344,13440,13416,13648,13752,14112,14280,14064,13848,13248,13096,12816,13048,12384,12424,12720,12632,9984,10216,9936,9784,9376,9288,9584,9624,8256,8360,8592,8568,9184,8968,8752,8920,10624,10600,10320,10424,10784,10952,11248,11032,11968,11816,12048,12280,11616,11656,11440,11352,29696,29928,30160,30008,30624,30536,30320,30360,29504,29608,29328,29304,28896,28680,28976,29144,31360,31336,31568,31672,31008,31176,30960,30744,32192,32040,31760,31992,32352,32392,32688,32600,26880,27112,26832,26680,27296,27208,27504,27544,28224,28328,28560,28536,28128,27912,27696,27864,26496,26472,26192,26296,25632,25800,26096,25880,24768,24616,24848,25080,25440,25480,25264,25176,19968,20200,20432,20280,19872,19784,19568,19608,18752,18856,18576,18552,19168,18952,19248,19416,16512,16488,16720,16824,17184,17352,17136,16920,18368,18216,17936,18168,17504,17544,17840,17752,21248,21480,21200,21048,20640,20552,20848,20888,21568,21672,21904,21880,22496,22280,22064,22232,23936,23912,23632,23736,24096,24264,24560,24344,23232,23080,23312,23544,22880,22920,22704,22616},{0,233,466,315,932,845,630,671,1864,1953,1690,1651,1260,1029,1342,1495,3728,3705,3906,4011,3380,3549,3302,3087,2520,2353,2058,2275,2684,2709,2990,2887,7456,7625,7410,7195,7812,7789,8022,8127,6760,6785,7098,6995,6604,6437,6174,6391,5040,4953,4706,4747,4116,4349,4550,4399,5368,5137,5418,5571,5980,6069,5774,5735,14912,15017,15250,15227,14820,14605,14390,14559,15624,15841,15578,15411,16044,15941,16254,16279,13520,13369,13570,13803,14196,14237,13990,13903,13208,13169,12874,12963,12348,12501,12782,12551,10080,10121,9906,9819,9412,9261,9494,9727,8232,8385,8698,8467,9100,9061,8798,8887,10736,10521,10274,10443,10836,10941,11142,11119,11960,11857,12138,12163,11548,11765,11470,11303,29824,29801,30034,30139,30500,30669,30454,30239,29640,29473,29210,29427,28780,28805,29118,29015,31248,31481,31682,31531,31156,31069,30822,30863,32088,32177,31882,31843,32508,32277,32558,32711,27040,26953,26738,26779,27140,27373,27606,27455,28392,28161,28474,28627,27980,28069,27806,27767,26416,26585,26338,26123,25748,25725,25926,26031,24696,24721,25002,24899,25564,25397,25102,25319,20160,20009,20242,20475,19812,19853,19638,19551,18824,18785,18522,18611,18988,19141,19454,19223,16464,16569,16770,16747,17396,17181,16934,17103,18200,18417,18122,17955,17596,17493,17774,17799,21472,21257,21042,21211,20548,20653,20886,20863,21672,21569,21882,21907,22284,22501,22238,22071,23920,23961,23714,23627,24276,24125,24326,24559,23096,23249,23530,23299,22940,22901,22606,22695},{0,234,468,318,936,834,636,662,1872,1978,1668,1646,1272,1042,1324,1478,3744,3658,3956,3998,3336,3554,3292,3126,2544,2330,2084,2254,2648,2738,2956,2918,7488,7594,7316,7294,7912,7682,7996,8150,6672,6906,7108,6958,6584,6482,6252,6278,5088,4874,4660,4830,4168,4258,4508,4470,5296,5210,5476,5518,5912,6130,5836,5670,14976,14954,15188,15294,14632,14786,14588,14358,15824,15674,15364,15598,15992,16018,16300,16198,13344,13514,13812,13598,14216,14178,13916,14006,13168,13210,12964,12878,12504,12338,12556,12774,10176,10026,9748,9982,9320,9346,9660,9558,8336,8314,8516,8622,9016,9170,8940,8710,10592,10634,10420,10334,10952,10786,11036,11254,11824,11994,12260,12046,11672,11634,11340,11430,29952,30186,29908,29758,30376,30274,30588,30614,29264,29370,29572,29550,29176,28946,28716,28870,31648,31562,31348,31390,30728,30946,31196,31030,31984,31770,32036,32206,32600,32690,32396,32358,26688,26794,27028,27006,27624,27394,27196,27350,28432,28666,28356,28206,27832,27730,28012,28038,26336,26122,26420,26590,25928,26018,25756,25718,25008,24922,24676,24718,25112,25330,25548,25382,20352,20330,20052,20158,19496,19650,19964,19734,18640,18490,18692,18926,19320,19346,19116,19014,16672,16842,16628,16414,17032,16994,17244,17334,18032,18074,18340,18254,17880,17714,17420,17638,21184,21034,21268,21502,20840,20866,20668,20566,21904,21882,21572,21678,22072,22226,22508,22278,23648,23690,23988,23902,24520,24354,24092,24310,23344,23514,23268,23054,22680,22642,22860,22950},{0,235,470,317,940,839,634,657,1880,1971,1678,1637,1268,1055,1314,1481,3760,3675,3942,3981,3356,3575,3274,3105,2536,2307,2110,2261,2628,2735,2962,2937,7520,7563,7350,7261,7884,7719,7962,8177,6712,6867,7150,6917,6548,6527,6210,6313,5072,4923,4614,4845,4220,4247,4522,4417,5256,5219,5470,5557,5924,6095,5874,5657,15040,14891,15126,15357,14700,14727,14522,14417,15768,15731,15438,15525,15924,16095,16354,16137,13424,13467,13734,13645,14300,14135,13834,14049,13096,13251,13054,12821,12420,12399,12626,12729,10144,10059,9846,9885,9228,9447,9690,9521,8440,8211,8494,8645,9044,9151,8834,8809,10512,10747,10438,10285,10940,10839,11114,11137,11848,11939,12190,12149,11748,11535,11314,11481,30080,30059,29782,29885,30252,30407,30714,30481,29400,29235,29454,29669,29044,29087,28834,28745,31536,31707,31462,31245,30876,30839,31050,31137,31848,31875,32190,32085,32708,32559,32274,32505,26848,26635,26934,27101,27468,27559,27290,27249,28600,28499,28270,28293,27668,27903,28098,27945,26192,26299,26502,26477,26108,25879,25642,25793,24840,25059,24798,24629,25252,25167,25458,25497,20288,20395,20118,20093,19692,19463,19770,19921,18456,18675,18894,18725,19380,19295,19042,19081,16880,16667,16422,16589,16988,17079,17290,17249,18088,17987,18302,18325,17668,17903,17618,17465,21024,21195,21494,21277,20876,20839,20570,20657,21880,21907,21678,21573,22228,22079,22274,22505,23696,23675,23878,23981,24380,24535,24298,24065,23496,23331,23070,23285,22628,22671,22962,22873},{0,236,472,308,944,860,616,644,1888,1932,1720,1620,1232,1084,1288,1508,3776,3628,3864,4084,3440,3484,3240,3140,2464,2380,2168,2196,2576,2812,3016,2852,7552,7532,7256,7348,7728,7900,8168,7940,6880,6668,6968,7124,6480,6588,6280,6244,4928,5036,4760,4724,4336,4124,4392,4548,5152,5324,5624,5396,6032,6012,5704,5796,15104,15340,15064,14900,14512,14428,14696,14724,15456,15500,15800,15700,16336,16188,15880,16100,13760,13612,13336,13556,13936,13980,14248,14148,12960,12876,13176,13204,12560,12796,12488,12324,9856,9836,10072,10164,9520,9692,9448,9220,8672,8460,8248,8404,8784,8892,9096,9060,10304,10412,10648,10612,11248,11036,10792,10948,12064,12236,12024,11796,11408,11388,11592,11684,30208,30444,30680,30516,30128,30044,29800,29828,29024,29068,28856,28756,29392,29244,29448,29668,30912,30764,31000,31220,31600,31644,31400,31300,32672,32588,32376,32404,31760,31996,32200,32036,27520,27500,27224,27316,26672,26844,27112,26884,27872,27660,27960,28116,28496,28604,28296,28260,25920,26028,25752,25716,26352,26140,26408,26564,25120,25292,25592,25364,24976,24956,24648,24740,19712,19948,19672,19508,20144,20060,20328,20356,19040,19084,19384,19284,18896,18748,18440,18660,17344,17196,16920,17140,16496,16540,16808,16708,17568,17484,17784,17812,18192,18428,18120,17956,20608,20588,20824,20916,21296,21468,21224,20996,22496,22284,22072,22228,21584,21692,21896,21860,24128,24236,24472,24436,24048,23836,23592,23748,22816,22988,22776,22548,23184,23164,23368,23460},{0,237,474,311,948,857,622,643,1896,1925,1714,1631,1244,1073,1286,1515,3792,3645,3850,4071,3428,3465,3262,3155,2488,2389,2146,2191,2572,2785,3030,2875,7584,7501,7290,7319,7700,7929,8142,7971,6856,6693,6930,7167,6524,6545,6310,6219,4976,5021,4778,4679,4292,4137,4382,4595,5144,5365,5570,5423,6060,5953,5750,5787,15168,15277,15002,14967,14580,14361,14638,14787,15400,15557,15858,15647,16284,16241,15942,16043,13712,13693,13386,13479,13860,14025,14334,14099,13048,12821,13090,13263,12620,12705,12438,12411,9952,9741,10042,10199,9556,9657,9358,9315,8584,8549,8274,8383,8764,8913,9190,8971,10288,10461,10730,10503,11140,11113,10846,10931,12120,12213,11906,11887,11500,11265,11574,11739,30336,30317,30554,30647,30004,30169,29934,29699,29160,28933,28722,28895,29276,29361,29574,29547,30800,30909,31114,31079,31716,31497,31294,31443,32568,32725,32482,32271,31884,31841,32086,32187,27424,27597,27386,27159,26772,26745,26958,27043,27720,27813,28050,28031,28668,28433,28198,28363,26096,25885,25642,25799,26180,26281,26526,26483,25240,25205,25410,25519,24876,25025,24822,24603,19904,19757,19482,19703,20084,20121,20398,20291,19112,19013,19314,19359,18716,18929,18630,18475,17168,17405,17098,16935,16548,16457,16766,16787,17528,17557,17826,17743,18380,18209,17942,18171,20576,20621,20922,20823,21460,21305,21006,21219,22280,22501,22226,22079,21692,21585,21862,21899,24240,24157,24426,24455,23812,24041,23774,23603,23000,22837,22530,22767,23148,23169,23478,23387},{0,238,476,306,952,854,612,650,1904,1950,1708,1602,1224,1062,1300,1530,3808,3598,3900,4050,3416,3510,3204,3178,2448,2430,2124,2210,2600,2758,3060,2842,7616,7470,7196,7410,7800,7830,8100,8010,6832,6750,7020,7042,6408,6630,6356,6202,4896,5070,4860,4626,4248,4214,4420,4522,5200,5310,5516,5474,6120,5894,5684,5850,15232,15214,14940,15026,14392,14550,14820,14602,15600,15390,15660,15810,16200,16294,16020,15994,13664,13710,13500,13394,14040,13878,14084,14314,12816,13054,13260,13090,12712,12614,12404,12442,9792,9902,10140,10098,9720,9494,9252,9418,8496,8670,8428,8194,8840,8806,9044,9146,10400,10318,10620,10642,11032,11254,10948,10794,12240,12094,11788,12002,11368,11398,11700,11610,30464,30702,30428,30258,29880,29782,30052,30090,28784,28830,29100,28994,29640,29478,29204,29434,31200,30990,30780,30930,31320,31414,31620,31594,32400,32382,32588,32674,32040,32198,31988,31770,27328,27182,27420,27634,27000,27030,26788,26698,28080,27998,27756,27778,28168,28390,28628,28474,25632,25806,26108,25874,26520,26486,26180,26282,25424,25534,25228,25186,24808,24582,24884,25050,19584,19566,19804,19890,20280,20438,20196,19978,19440,19230,18988,19138,18504,18598,18836,18810,16992,17038,17340,17234,16856,16694,16388,16618,17680,17918,17612,17442,18088,17990,18292,18330,20800,20910,20636,20594,21240,21014,21284,21450,22064,22238,22508,22274,21896,21862,21588,21690,24480,24398,24188,24210,23576,23798,24004,23850,22736,22590,22796,23010,23400,23430,23220,23130},{0,239,478,305,956,851,610,653,1912,1943,1702,1609,1220,1067,1306,1525,3824,3615,3886,4033,3404,3491,3218,3197,2440,2407,2134,2233,2612,2779,3050,2821,7648,7439,7230,7377,7772,7859,8066,8045,6808,6775,6982,7081,6436,6603,6394,6165,4880,5119,4814,4641,4268,4163,4466,4509,5224,5255,5558,5465,6100,5947,5642,5861,15296,15151,14878,15089,14460,14483,14754,14669,15544,15447,15718,15753,16132,16363,16090,15925,13616,13791,13550,13313,13964,13923,14162,14269,12872,12967,13206,13177,12788,12571,12330,12485,9760,9935,10238,10001,9628,9587,9282,9389,8536,8631,8326,8297,8932,8715,9018,9173,10448,10303,10510,10721,11116,11139,10930,10845,12200,12103,11894,11929,11284,11515,11722,11557,30592,30575,30302,30385,29756,29907,30178,29965,28920,28695,28966,29129,29508,29611,29338,29301,31088,31135,30894,30785,31436,31267,31506,31741,32264,32487,32726,32569,32180,32091,31850,31877,27232,27279,27582,27473,27100,26931,26626,26861,27928,28151,27846,27689,28324,28235,28538,28565,25744,25727,25934,26017,26412,26563,26354,26141,25576,25351,25142,25305,24660,24763,24970,24933,19520,19631,19870,19825,20476,20243,20002,20173,19256,19415,19174,18953,18564,18539,18778,18869,17072,16991,17262,17281,16652,16867,16594,16445,17864,17703,17430,17657,18036,18075,18346,18245,20896,20815,20606,20625,21020,21235,21442,21293,22232,22071,22278,22505,21860,21899,21690,21589,24400,24511,24206,24161,23788,23555,23858,24029,22568,22727,23030,22809,23444,23419,23114,23205},{0,240,480,272,960,816,544,720,1920,1904,1632,1680,1088,1200,1440,1360,3840,4080,3808,3600,3264,3120,3360,3536,2176,2160,2400,2448,2880,2992,2720,2640,7680,7920,8160,7952,7616,7472,7200,7376,6528,6512,6240,6288,6720,6832,7072,6992,4352,4592,4320,4112,4800,4656,4896,5072,5760,5744,5984,6032,5440,5552,5280,5200,15360,15600,15840,15632,16320,16176,15904,16080,15232,15216,14944,14992,14400,14512,14752,14672,13056,13296,13024,12816,12480,12336,12576,12752,13440,13424,13664,13712,14144,14256,13984,13904,8704,8944,9184,8976,8640,8496,8224,8400,9600,9584,9312,9360,9792,9904,10144,10064,11520,11760,11488,11280,11968,11824,12064,12240,10880,10864,11104,11152,10560,10672,10400,10320,30720,30960,31200,30992,31680,31536,31264,31440,32640,32624,32352,32400,31808,31920,32160,32080,30464,30704,30432,30224,29888,29744,29984,30160,28800,28784,29024,29072,29504,29616,29344,29264,26112,26352,26592,26384,26048,25904,25632,25808,24960,24944,24672,24720,25152,25264,25504,25424,26880,27120,26848,26640,27328,27184,27424,27600,28288,28272,28512,28560,27968,28080,27808,27728,17408,17648,17888,17680,18368,18224,17952,18128,17280,17264,16992,17040,16448,16560,16800,16720,19200,19440,19168,18960,18624,18480,18720,18896,19584,19568,19808,19856,20288,20400,20128,20048,23040,23280,23520,23312,22976,22832,22560,22736,23936,23920,23648,23696,24128,24240,24480,24400,21760,22000,21728,21520,22208,22064,22304,22480,21120,21104,21344,21392,20800,20912,20640,20560},{0,241,482,275,964,821,550,727,1928,1913,1642,1691,1100,1213,1454,1375,3856,4065,3826,3587,3284,3109,3382,3527,2200,2153,2426,2443,2908,2989,2750,2639,7712,7889,8130,7987,7652,7445,7174,7415,6568,6489,6218,6331,6764,6813,7054,7039,4400,4545,4306,4131,4852,4613,4886,5095,5816,5705,5978,6059,5500,5517,5278,5231,15424,15537,15778,15699,16260,16245,15974,16023,15304,15161,14890,15067,14348,14589,14830,14623,13136,13217,12978,12867,12436,12389,12662,12679,13528,13353,13626,13771,14108,14317,14078,13839,8800,8849,9090,9075,8612,8533,8262,8375,9704,9497,9226,9467,9772,9949,10190,10047,11632,11649,11410,11363,11956,11845,12118,12199,11000,10761,11034,11243,10556,10701,10462,10287,30848,30833,31074,31123,31556,31669,31398,31319,32520,32761,32490,32283,31948,31805,32046,32223,30608,30561,30322,30339,29780,29861,30134,30023,28696,28905,29178,28939,29660,29485,29246,29391,26272,26193,26434,26547,25956,26005,25734,25719,24872,25049,24778,24635,25324,25117,25358,25599,27056,26945,26706,26787,27252,27269,27542,27495,28216,28361,28634,28459,28156,27917,27678,27887,17600,17457,17698,17875,18180,18421,18150,17943,17224,17337,17066,16987,16524,16509,16750,16799,19408,19233,18994,19139,18452,18661,18934,18695,19544,19625,19898,19787,20380,20333,20094,20111,23264,23057,23298,23539,22820,22997,22726,22583,23912,23961,23690,23675,24236,24157,24398,24511,22000,21761,21522,21731,22068,22213,22486,22311,21112,21129,21402,21355,20924,20813,20574,20655},{0,242,484,278,968,826,556,734,1936,1890,1652,1670,1112,1194,1468,1358,3872,4050,3780,3638,3304,3098,3340,3582,2224,2114,2388,2470,2936,2954,2716,2670,7744,7858,8100,8022,7560,7546,7276,7326,6608,6434,6196,6342,6680,6890,7164,6926,4448,4498,4228,4214,4776,4698,4940,5054,5872,5634,5908,6118,5432,5578,5340,5166,15488,15474,15716,15766,16200,16314,16044,15966,15120,15330,15092,14854,14552,14378,14652,14798,13216,13138,12868,12982,12392,12442,12684,12670,13360,13506,13780,13606,14328,14090,13852,14062,8896,8754,8996,9174,8456,8698,8428,8222,9552,9634,9396,9286,9880,9834,10108,10126,11744,11538,11268,11510,11816,11994,12236,12094,10864,10882,11156,11110,10680,10570,10332,10414,30976,31218,30948,30742,31432,31290,31532,31710,32400,32354,32628,32646,32088,32170,31932,31822,30240,30418,30660,30518,30184,29978,29708,29950,29104,28994,28756,28838,29304,29322,29596,29550,26432,26546,26276,26198,25736,25722,25964,26014,24784,24610,24884,25030,25368,25578,25340,25102,26720,26770,27012,26998,27560,27482,27212,27326,28656,28418,28180,28390,27704,27850,28124,27950,17792,17778,17508,17558,17992,18106,18348,18270,16912,17122,17396,17158,16856,16682,16444,16590,19104,19026,19268,19382,18792,18842,18572,18558,19760,19906,19668,19494,20216,19978,20252,20462,23488,23346,23076,23254,22536,22778,23020,22814,23632,23714,23988,23878,24472,24426,24188,24206,21728,21522,21764,22006,22312,22490,22220,22078,21360,21378,21140,21094,20664,20554,20828,20910},{0,243,486,277,972,831,554,729,1944,1899,1662,1677,1108,1191,1458,1345,3888,4035,3798,3621,3324,3087,3354,3561,2216,2139,2382,2493,2916,2967,2690,2673,7776,7827,8070,8053,7596,7519,7242,7353,6648,6411,6174,6381,6708,6855,7122,6945,4432,4515,4278,4165,4764,4719,4986,5001,5832,5691,5934,6109,5380,5623,5346,5137,15552,15411,15654,15829,16140,16383,16106,15897,15192,15275,15038,14925,14484,14439,14706,14721,13296,13059,12822,13029,12348,12495,12762,12585,13416,13467,13710,13693,14244,14167,13890,14001,8864,8787,9030,9141,8556,8607,8330,8313,9528,9675,9438,9261,9972,9735,10002,10209,11664,11619,11382,11397,11868,11951,12218,12105,10760,11003,11246,11037,10692,10551,10274,10449,31104,31091,30822,30869,31308,31423,31658,31577,32280,32491,32766,32525,32212,32039,31794,31937,30384,30275,30550,30629,30076,30095,29850,29801,28968,29147,28878,28733,29412,29207,29442,29681,26592,26387,26118,26357,25644,25823,26058,25913,24696,24715,24990,24941,25524,25415,25170,25249,26832,26659,26934,27077,27420,27631,27386,27145,28488,28603,28334,28253,27780,27767,28002,28049,17728,17843,17574,17493,18060,18047,18282,18329,17112,16939,17214,17357,16660,16871,16626,16385,19056,19075,19350,19301,18876,18767,18522,18601,19944,19739,19470,19709,20004,20183,20418,20273,23328,23507,23238,23093,22764,22559,22794,23033,23736,23627,23902,23981,24436,24455,24210,24161,21520,21731,22006,21765,22492,22319,22074,22217,21384,21371,21102,21149,20548,20663,20898,20817},{0,244,488,284,976,804,568,716,1952,1876,1608,1724,1136,1156,1432,1388,3904,4020,3752,3676,3216,3172,3448,3468,2272,2068,2312,2556,2864,3012,2776,2604,7808,7796,8040,8092,7504,7588,7352,7244,6432,6612,6344,6204,6896,6660,6936,7148,4544,4404,4136,4316,4624,4836,5112,4876,5728,5780,6024,6012,5552,5444,5208,5292,15616,15860,15592,15388,16080,15908,16184,16332,15008,14932,15176,15292,14704,14724,14488,14444,12864,12980,13224,13148,12688,12644,12408,12428,13792,13588,13320,13564,13872,14020,14296,14124,9088,9076,8808,8860,8272,8356,8632,8524,9248,9428,9672,9532,10224,9988,9752,9964,11456,11316,11560,11740,12048,12260,12024,11788,11104,11156,10888,10876,10416,10308,10584,10668,31232,31476,31720,31516,31184,31012,30776,30924,32160,32084,31816,31932,32368,32388,32664,32620,30016,30132,29864,29788,30352,30308,30584,30604,29408,29204,29448,29692,28976,29124,28888,28716,25728,25716,25960,26012,26448,26532,26296,26188,25376,25556,25288,25148,24816,24580,24856,25068,27584,27444,27176,27356,26640,26852,27128,26892,27744,27796,28040,28028,28592,28484,28248,28332,18176,18420,18152,17948,17616,17444,17720,17868,16544,16468,16712,16828,17264,17284,17048,17004,18496,18612,18856,18780,19344,19300,19064,19084,20448,20244,19976,20220,19504,19652,19928,19756,22912,22900,22632,22684,23120,23204,23480,23372,24096,24276,24520,24380,24048,23812,23576,23788,22208,22068,22312,22492,21776,21988,21752,21516,20832,20884,20616,20604,21168,21060,21336,21420},{0,245,490,287,980,801,574,715,1960,1885,1602,1719,1148,1161,1430,1379,3920,4005,3770,3663,3204,3185,3438,3483,2296,2061,2322,2535,2860,3033,2758,2611,7840,7765,8010,8127,7540,7553,7326,7275,6408,6653,6370,6167,6876,6697,6966,7107,4592,4357,4122,4335,4644,4817,5070,4923,5720,5805,6066,5959,5516,5497,5222,5267,15680,15797,15530,15455,16020,15969,16254,16267,15080,14877,15106,15351,14652,14793,14550,14371,12816,13029,13306,13071,12740,12593,12334,12507,13752,13645,13394,13479,13932,13977,14214,14195,9184,8981,8714,8959,8244,8385,8670,8491,9288,9405,9634,9559,10140,10089,9846,9859,11440,11333,11610,11695,12132,12177,11918,11899,11032,11245,10994,10759,10444,10297,10534,10707,31360,31349,31594,31647,31060,31137,30910,30795,32040,32221,31938,31799,32508,32265,32534,32739,30160,29989,29754,29903,30212,30449,30702,30491,29304,29325,29586,29543,29100,29017,28742,28851,25632,25813,26058,25919,26612,26369,26142,26347,25480,25469,25186,25239,24668,24745,25014,24899,27504,27525,27290,27247,26788,26705,26958,27067,27864,27693,27954,28103,28428,28665,28390,28179,18368,18229,17962,18143,17428,17633,17918,17675,16488,16541,16770,16759,17340,17225,16982,17059,18576,18533,18810,18831,19268,19377,19118,19035,20280,20429,20178,20007,19692,19481,19718,19955,22880,22933,22666,22655,23220,23105,23390,23467,24264,24125,24354,24535,23836,24041,23798,23555,22064,22213,22490,22319,21988,21777,21518,21755,20888,20845,20594,20615,21068,21177,21414,21331},{0,246,492,282,984,814,564,706,1968,1862,1628,1706,1128,1182,1412,1394,3936,3990,3724,3706,3256,3150,3412,3490,2256,2086,2364,2506,2824,3070,2788,2578,7872,7734,7980,8154,7448,7662,7412,7170,6512,6534,6300,6250,6824,6750,6980,7090,4512,4438,4172,4282,4728,4750,5012,4962,5648,5862,6140,5898,5576,5438,5156,5330,15744,15734,15468,15514,15960,16046,16308,16194,14896,15046,15324,15146,14824,14622,14340,14578,13024,12822,13068,13306,12600,12750,12500,12322,13648,13734,13500,13386,13960,13950,14180,14226,9024,9142,8876,8794,8344,8302,8564,8578,9456,9222,9500,9706,10024,10206,9924,9778,11296,11478,11724,11578,12280,12046,11796,12002,11152,11110,10876,10890,10312,10430,10660,10578,31488,31734,31468,31258,30936,30766,31028,31170,31920,31814,32092,32170,32616,32670,32388,32370,29792,29846,30092,30074,30648,30542,30292,30370,29648,29478,29244,29386,28680,28926,29156,28946,26048,25910,25644,25818,26136,26350,26612,26370,25200,25222,25500,25450,25000,24926,24644,24754,27296,27222,27468,27578,27000,27022,26772,26722,27920,28134,27900,27658,28360,28222,28452,28626,18048,18038,18284,18330,17752,17838,17588,17474,16688,16838,16604,16426,17128,16926,17156,17394,18912,18710,18444,18682,19000,19150,19412,19234,20048,20134,20412,20298,19848,19838,19556,19602,22592,22710,22956,22874,23448,23406,23156,23170,24560,24326,24092,24298,23592,23774,24004,23858,22304,22486,22220,22074,21752,21518,21780,21986,20624,20582,20860,20874,21320,21438,21156,21074},{0,247,494,281,988,811,562,709,1976,1871,1622,1697,1124,1171,1418,1405,3952,3975,3742,3689,3244,3163,3394,3509,2248,2111,2342,2513,2836,3043,2810,2573,7904,7703,7950,8185,7484,7627,7378,7205,6488,6575,6326,6209,6788,6771,7018,7069,4496,4455,4222,4233,4684,4795,5026,4949,5672,5855,6086,5937,5620,5379,5146,5357,15808,15671,15406,15577,15900,16107,16370,16133,14968,14991,15254,15201,14756,14675,14410,14525,12976,12871,13150,13225,12652,12699,12418,12405,13576,13823,13542,13329,14036,13859,14138,14285,8992,9175,8910,8761,8444,8203,8466,8677,9368,9327,9590,9601,10052,10163,9898,9821,11344,11431,11710,11593,12172,12155,11874,11925,11240,11039,10758,10993,10292,10435,10714,10541,31616,31607,31342,31385,30812,30891,31154,31045,31800,31951,32214,32033,32740,32531,32266,32509,29936,29703,29982,30185,30508,30683,30402,30261,29512,29631,29350,29265,28820,28771,29050,29069,25952,26007,25742,25721,26300,26187,26450,26533,25304,25135,25398,25537,24836,25075,24810,24605,27152,27367,27646,27401,27084,26939,26658,26837,28072,27999,27718,27825,28276,28291,28570,28525,17984,18103,18350,18265,17820,17771,17522,17541,16888,16655,16406,16609,16932,17107,17354,17213,18736,18887,18654,18473,19180,18971,19202,19445,20104,20095,20326,20369,19796,19875,19642,19533,22688,22615,22862,22969,23420,23435,23186,23141,24344,24559,24310,24065,23748,23603,23850,24029,22480,22311,22078,22217,21516,21755,21986,21781,20584,20639,20870,20849,21428,21315,21082,21165},{0,248,496,264,992,792,528,744,1984,1848,1584,1736,1056,1240,1488,1320,3968,3960,3696,3720,3168,3224,3472,3432,2112,2232,2480,2376,2976,2904,2640,2728,7936,8184,7920,7688,7392,7192,7440,7656,6336,6200,6448,6600,6944,7128,6864,6696,4224,4216,4464,4488,4960,5016,4752,4712,5952,6072,5808,5704,5280,5208,5456,5544,15872,16120,16368,16136,15840,15640,15376,15592,14784,14648,14384,14536,14880,15064,15312,15144,12672,12664,12400,12424,12896,12952,13200,13160,13888,14008,14256,14152,13728,13656,13392,13480,8448,8696,8432,8200,8928,8728,8976,9192,9920,9784,10032,10184,9504,9688,9424,9256,11904,11896,12144,12168,11616,11672,11408,11368,10560,10680,10416,10312,10912,10840,11088,11176,31744,31992,32240,32008,32736,32536,32272,32488,31680,31544,31280,31432,30752,30936,31184,31016,29568,29560,29296,29320,28768,28824,29072,29032,29760,29880,30128,30024,30624,30552,30288,30376,25344,25592,25328,25096,24800,24600,24848,25064,25792,25656,25904,26056,26400,26584,26320,26152,27776,27768,28016,28040,28512,28568,28304,28264,27456,27576,27312,27208,26784,26712,26960,27048,16896,17144,17392,17160,16864,16664,16400,16616,17856,17720,17456,17608,17952,18136,18384,18216,19840,19832,19568,19592,20064,20120,20368,20328,19008,19128,19376,19272,18848,18776,18512,18600,23808,24056,23792,23560,24288,24088,24336,24552,23232,23096,23344,23496,22816,23000,22736,22568,21120,21112,21360,21384,20832,20888,20624,20584,21824,21944,21680,21576,22176,22104,22352,22440},{0,249,498,267,996,797,534,751,1992,1841,1594,1731,1068,1237,1502,1319,3984,3945,3682,3739,3188,3213,3462,3455,2136,2209,2474,2387,3004,2885,2638,2743,7968,8153,7890,7723,7364,7229,7478,7631,6376,6161,6426,6627,6924,7157,6910,6663,4272,4169,4418,4539,4948,5037,4774,4703,6008,6017,5770,5747,5276,5221,5486,5527,15936,16057,16306,16203,15780,15709,15446,15535,14728,14705,14458,14467,14956,14997,15262,15207,12752,12585,12322,12507,12852,13005,13254,13119,13848,14049,14314,14099,13820,13573,13326,13559,8544,8601,8338,8299,8836,8829,9078,9103,9896,9809,10074,10147,9548,9653,9406,9287,12016,11785,12034,12283,11540,11757,11494,11295,10552,10689,10442,10291,10972,10789,11054,11223,31872,31865,32114,32139,32612,32669,32406,32367,31560,31665,31418,31299,30892,30805,31070,31143,29456,29673,29410,29211,28916,28685,28934,29183,29912,29729,29994,30163,30524,30661,30414,30263,25504,25433,25170,25259,24644,24765,25014,24911,25704,25745,26010,25955,26508,26485,26238,26247,27696,27849,28098,27963,28628,28461,28198,28383,27640,27393,27146,27379,26652,26853,27118,26903,17088,16953,17202,17355,16676,16861,16598,16431,17672,17905,17658,17411,18156,17941,18206,18407,19792,19881,19618,19547,20148,20045,20294,20415,19096,19041,19306,19347,18812,18821,18574,18551,24032,23833,23570,23787,24068,24317,24566,24335,23080,23249,23514,23331,22988,22837,22590,22727,21104,21129,21378,21371,20884,20845,20582,20639,21944,21825,21578,21683,22108,22181,22446,22359},{0,250,500,270,1000,786,540,742,2000,1834,1572,1758,1080,1218,1484,1334,4000,3930,3668,3758,3144,3250,3516,3398,2160,2186,2436,2430,2968,2914,2668,2710,8000,8122,7860,7758,7336,7250,7516,7590,6288,6250,6500,6558,7032,7042,6796,6774,4320,4122,4372,4590,4872,5106,4860,4614,5936,6090,5828,5694,5336,5154,5420,5590,16000,15994,16244,16270,15720,15762,15516,15462,14672,14762,14500,14430,15032,14914,15180,15286,12576,12762,12500,12334,13000,12850,13116,13254,14064,13834,14084,14334,13592,13794,13548,13334,8640,8506,8244,8398,8744,8914,9180,8998,9744,9962,10212,10014,9720,9474,9228,9462,11872,11930,12180,12142,11656,11634,11388,11398,10672,10570,10308,10430,10840,10914,11180,11094,32000,32250,31988,31758,32488,32274,32540,32742,31440,31274,31524,31710,31032,31170,30924,30774,29344,29274,29524,29614,29000,29106,28860,28742,30064,30090,29828,29822,30360,30306,30572,30614,25152,25274,25524,25422,25000,24914,24668,24742,26000,25962,25700,25758,26232,26242,26508,26486,28128,27930,27668,27886,28168,28402,28668,28422,27184,27338,27588,27454,27096,26914,26668,26838,17280,17274,17012,17038,16488,16530,16796,16742,17488,17578,17828,17758,18360,18242,17996,18102,19488,19674,19924,19758,20424,20274,20028,20166,19440,19210,18948,19198,18456,18658,18924,18710,23744,23610,23860,24014,24360,24530,24284,24102,23312,23530,23268,23070,22776,22530,22796,23030,21344,21402,21140,21102,20616,20594,20860,20870,21680,21578,21828,21950,22360,22434,22188,22102},{0,251,502,269,1004,791,538,737,2008,1827,1582,1749,1076,1231,1474,1337,4016,3915,3654,3773,3164,3239,3498,3409,2152,2195,2462,2405,2948,2943,2674,2697,8032,8091,7830,7789,7308,7287,7546,7553,6328,6211,6478,6581,6996,7087,6818,6745,4304,4139,4390,4573,4924,5063,4810,4657,5896,6131,5886,5637,5348,5151,5394,5609,16064,15931,16182,16333,15660,15831,15578,15393,14616,14819,14574,14357,15092,14863,15106,15353,12656,12683,12422,12413,12956,12903,13162,13201,13992,13907,14174,14245,13636,13759,13490,13385,8608,8539,8278,8365,8780,8887,9146,9025,9848,9859,10126,10101,9620,9583,9314,9369,11792,12011,12262,12061,11772,11527,11274,11505,10696,10547,10302,10437,10788,10975,11218,11049,32128,32123,31862,31885,32364,32407,32666,32609,31320,31395,31662,31573,31156,31055,30786,30905,29232,29387,29638,29501,29148,28967,28714,28881,30184,29971,29726,29925,30212,30463,30706,30473,25312,25115,25366,25581,24844,25079,24826,24577,25912,26051,25806,25653,26324,26159,26402,26585,27984,28075,27814,27741,28348,28231,28490,28593,27272,27251,27518,27525,26980,27039,26770,26729,17216,17339,17078,16973,16556,16471,16730,16801,17560,17507,17774,17813,18292,18319,18050,18041,19696,19467,19718,19965,20252,20455,20202,19985,19240,19411,19166,18981,18628,18495,18738,18889,23584,23771,24022,23853,24524,24375,24122,24257,23544,23299,23054,23285,22548,22767,23010,22809,21392,21355,21094,21149,20604,20615,20874,20849,21576,21683,21950,21829,22436,22367,22098,22185},{0,252,504,260,1008,780,520,756,2016,1820,1560,1764,1040,1260,1512,1300,4032,3900,3640,3780,3120,3276,3528,3380,2080,2268,2520,2340,3024,2860,2600,2772,8064,8060,7800,7812,7280,7308,7560,7540,6240,6300,6552,6500,7056,7020,6760,6804,4160,4284,4536,4420,5040,4940,4680,4788,6048,5980,5720,5796,5200,5292,5544,5460,16128,16380,16120,15876,15600,15372,15624,15860,14560,14364,14616,14820,15120,15340,15080,14868,12480,12348,12600,12740,13104,13260,13000,12852,14112,14300,14040,13860,13520,13356,13608,13780,8320,8316,8568,8580,9072,9100,8840,8820,10080,10140,9880,9828,9360,9324,9576,9620,12096,12220,11960,11844,11440,11340,11592,11700,10400,10332,10584,10660,11088,11180,10920,10836,32256,32508,32760,32516,32240,32012,31752,31988,31200,31004,30744,30948,31248,31468,31720,31508,29120,28988,28728,28868,29232,29388,29640,29492,30240,30428,30680,30500,30160,29996,29736,29908,24960,24956,24696,24708,25200,25228,25480,25460,26208,26268,26520,26468,26000,25964,25704,25748,28224,28348,28600,28484,28080,27980,27720,27828,27040,26972,26712,26788,27216,27308,27560,27476,16640,16892,16632,16388,17136,16908,17160,17396,18144,17948,18200,18404,17680,17900,17640,17428,20160,20028,20280,20420,19760,19916,19656,19508,18720,18908,18648,18468,19152,18988,19240,19412,24192,24188,24440,24452,23920,23948,23688,23668,22880,22940,22680,22628,23184,23148,23400,23444,20800,20924,20664,20548,21168,21068,21320,21428,22176,22108,22360,22436,21840,21932,21672,21588},{0,253,506,263,1012,777,526,755,2024,1813,1554,1775,1052,1249,1510,1307,4048,3885,3626,3799,3108,3289,3550,3363,2104,2245,2498,2367,3020,2865,2614,2763,8096,8029,7770,7847,7252,7337,7598,7507,6216,6325,6578,6479,7100,6977,6726,6843,4208,4237,4490,4471,4996,4985,4734,4739,6040,5989,5730,5791,5228,5265,5526,5483,16192,16317,16058,15943,15540,15433,15694,15795,14504,14421,14674,14767,15196,15265,15014,14939,12432,12397,12650,12695,13156,13209,12958,12899,14200,14213,13954,13951,13452,13425,13686,13707,8416,8221,8474,8679,8980,9193,8942,8723,9992,10229,9970,9743,9468,9217,9478,9723,12080,12237,11978,11831,11460,11321,11582,11715,10456,10277,10530,10719,11052,11217,10966,10795,32384,32381,32634,32647,32116,32137,31886,31859,31080,31125,30866,30831,31388,31329,31590,31643,29008,29101,28842,28759,29348,29273,29534,29603,30392,30277,30530,30655,30028,30129,29878,29771,24864,25053,24794,24615,25300,25129,25390,25555,26312,26165,26418,26575,25916,26049,25798,25659,28400,28173,28426,28663,27908,28153,27902,27651,26904,27109,26850,26655,27372,27153,27414,27627,16832,16701,16442,16583,16948,17097,17358,17203,17960,18133,18386,18223,17884,17697,17446,17627,19984,20205,20458,20247,19940,19737,19486,19683,18936,18693,18434,18687,18956,19185,19446,19211,24160,24221,24474,24423,23956,23913,23662,23699,22920,22901,22642,22671,23164,23169,23430,23419,20912,20813,20554,20663,21060,21177,21438,21315,22104,22181,22434,22367,21932,21841,21590,21675},{0,254,508,258,1016,774,516,762,2032,1806,1548,1778,1032,1270,1524,1290,4064,3870,3612,3810,3096,3302,3556,3354,2064,2286,2540,2322,3048,2838,2580,2794,8128,7998,7740,7874,7224,7366,7620,7482,6192,6350,6604,6450,7112,6966,6708,6858,4128,4318,4572,4386,5080,4902,4644,4826,6096,5934,5676,5842,5160,5334,5588,5418,16256,16254,15996,16002,15480,15494,15748,15738,14448,14478,14732,14706,15240,15222,14964,14986,12384,12446,12700,12642,13208,13158,12900,12954,14224,14190,13932,13970,13416,13462,13716,13674,8256,8382,8636,8514,9144,9030,8772,8890,10160,10062,9804,9906,9288,9398,9652,9546,12192,12126,11868,11938,11352,11430,11684,11610,10320,10414,10668,10578,11176,11094,10836,10922,32512,32766,32508,32258,31992,31750,32004,32250,30960,30734,30988,31218,31496,31734,31476,31242,28896,28702,28956,29154,29464,29670,29412,29210,30480,30702,30444,30226,29928,29718,29972,30186,24768,24638,24892,25026,25400,25542,25284,25146,26416,26574,26316,26162,25800,25654,25908,26058,28448,28638,28380,28194,27864,27686,27940,28122,26832,26670,26924,27090,27432,27606,27348,27178,16512,16510,16764,16770,17272,17286,17028,17018,18288,18318,18060,18034,17544,17526,17780,17802,20320,20382,20124,20066,19608,19558,19812,19866,18576,18542,18796,18834,19304,19350,19092,19050,24384,24510,24252,24130,23736,23622,23876,23994,22704,22606,22860,22962,23368,23478,23220,23114,20640,20574,20828,20898,21336,21414,21156,21082,22352,22446,22188,22098,21672,21590,21844,21930},{0,255,510,257,1020,771,514,765,2040,1799,1542,1785,1028,1275,1530,1285,4080,3855,3598,3825,3084,3315,3570,3341,2056,2295,2550,2313,3060,2827,2570,2805,8160,7967,7710,7905,7196,7395,7650,7453,6168,6375,6630,6425,7140,6939,6682,6885,4112,4335,4590,4369,5100,4883,4626,4845,6120,5911,5654,5865,5140,5355,5610,5397,16320,16191,15934,16065,15420,15555,15810,15677,14392,14535,14790,14649,15300,15163,14906,15045,12336,12495,12750,12593,13260,13107,12850,13005,14280,14135,13878,14025,13364,13515,13770,13621,8224,8415,8670,8481,9180,8995,8738,8925,10200,10023,9766,9945,9252,9435,9690,9509,12240,12079,11822,11985,11308,11475,11730,11565,10280,10455,10710,10537,11220,11051,10794,10965,32640,32639,32382,32385,31868,31875,32130,32125,30840,30855,31110,31097,31620,31611,31354,31365,28784,28815,29070,29041,29580,29555,29298,29325,30600,30583,30326,30345,29812,29835,30090,30069,24672,24735,24990,24929,25500,25443,25186,25245,26520,26471,26214,26265,25700,25755,26010,25957,28560,28527,28270,28305,27756,27795,28050,28013,26728,26775,27030,26985,27540,27499,27242,27285,16448,16575,16830,16705,17340,17219,16962,17085,18360,18247,17990,18105,17476,17595,17850,17733,20400,20303,20046,20145,19532,19635,19890,19789,18504,18615,18870,18761,19380,19275,19018,19125,24480,24415,24158,24225,23644,23715,23970,23901,22616,22695,22950,22873,23460,23387,23130,23205,20560,20655,20910,20817,21420,21331,21074,21165,22440,22359,22102,22185,21588,21675,21930,21845}};
